[R] Labels in ICLUST

2011-10-11 Thread Steve Powell
Dear all, I can't get the labels slot in ICLUST to accept a character vector. library(psych) test.data <- Harman74.cor$cov ic.out <- ICLUST(test.data,nclusters =4,labels=letters[1:ncol(test.data)]) ## Error in !labels : invalid argument type ic.out <- ICLUST(test.data,nclusters =4,labels=1:ncol(tes

[R] effect size measure for dependent samples

2011-01-22 Thread Steve Powell
Any advice on which package I can use for calculating effect sizes for two dependent samples? compute.es seems only to consider independent samples. Thanks in advance Steve Powell [[alternative HTML version deleted]] __ R-help@r-project.org

Re: [R] "save scores" from sem

2010-06-23 Thread Steve Powell
Structural equation modelling combines those observed variables > exactly to be able to take the variation on the combined latent > variable into account. If you use those latent variables as input in a > second analysis, you lose the information regarding the variation. > > Cheers &g

Re: [R] "save scores" from sem

2010-06-23 Thread Steve Powell
SPSS. > > I don't understand what you mean with scores in the context of > structural equation modelling. Lavaan is unknown to me. > > Cheers > Joris > > On Tue, Jun 22, 2010 at 3:11 PM, Steve Powell wrote: >>  Dear expeRts, >> sorry for such a new

[R] "save scores" from sem

2010-06-22 Thread Steve Powell
or lavaan packages, to use in further analyses? Best wishes Steve Powell www.promente.org | skype stevepowell99 | +387 61 215 997 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-p

[R] sample weights in nlme

2010-03-25 Thread Steve Powell
Dear expeRts Is it not the case that very many multi-level datasets have associated sample weights? But then I don't see a way to include them in the analyses? Or, how can I make nlme talk to the "survey" package? Best Wishes Steve __ R-help@r-project.o

Re: [R] two questions for R beginners

2010-03-25 Thread Steve Powell
For psychologists like me (possibly for others) by far the most time-consuming detail is variable labels. I need them for just about every analysis I do. We can use special packages like Hmisc and its function spss.get to import the labels, but then nearly all the other packages don't respect the l

[R] multi-stage sampling and hierarchical models: which packages?

2010-03-23 Thread Steve Powell
y stuck. If someone could put me on the right track I could be more specific with reproducible examples etc Best Wishes Steve Powell **details of Lahirie method as we used it: the schools were put into a list in order of ascending size (student population) and this list was divided

[R] using survey weights for correlations

2008-11-30 Thread Steve Powell
calculate a covariance matrix of the questionnaire scores for use in sem. How do I apply the weights? Thanks in advance, Steve Powell www.promente.org proMENTE social research Krančevićeva 35 71000 Sarajevo skype stevepowell99 mob. +387 61 215 997 tel. +387 33 556 865 fax. +387 33 556 866

Re: [R] printing name of object inside lapply

2008-09-04 Thread Steve Powell
Thanks Prof Ripley! How obvious in retrospect! Prof Brian Ripley wrote: On Thu, 4 Sep 2008, Steve Powell wrote: Dear list members, I am trying, within a lapply command, to print the name of the objects in list or data frame. This is so that I can use odfWeave to print out a report with a

[R] printing name of object inside lapply

2008-09-04 Thread Steve Powell
Dear list members, I am trying, within a lapply command, to print the name of the objects in list or data frame. This is so that I can use odfWeave to print out a report with a section for each object, including the object names. I tried e.g. a=b=c=1:5 lis=data.frame(a,b,c) lapply( lis, function

[R] odf and unzip: unzip not found

2007-11-16 Thread Steve Powell
) presumably my zip and unzip are not set up correctly but I dont know how to do that. I installed zip and unzip from info-zip.org as suggested in the help file, and think I managed set my Windows path to include the folders where they are installed, but still no luck. Any ideas? thanks Steve Powell

[R] Substitute in function calling a function

2007-10-22 Thread Steve Powell
sion but can't seem to get it right. Any ideas? Thanks in advance Steve Powell proMENTE social research research | evaluation | training & consulting Kranjčevićeva 35, 71000 Sarajevo mobile: +387 61 215 997 | office: +387 33 556 865 | fax: +387 33 556 866 skype: stevepowell99

Re: [R] Apply vector of labels to columns of data frame

2007-10-05 Thread Steve Powell
o label(df$a)="lab1" label(df$b)="lab2" etc Or attributes(df$a)$label="lab1" etc But I would like to do this with a loop or an apply function. Thanks and best wishes Steve Powell proMENTE social research research | evaluation | training & consulting Kranj

[R] Apply vector of labels to columns of data frame

2007-10-05 Thread Steve Powell
Dear list members I would like to apply a vector of labels v=c("lab1","lab2","lab3") to a dataframe df=data.frame(1:3,1:3,1:3) using some kind of loop or apply function. Any ideas? Thanks Steve Powell Checked by AVG Free Edition. 17:03 [[al

Re: [R] Separate colour for comments in scripts

2007-09-24 Thread Steve Powell
Dear Sumit Tinn-R is a little text editor which can do all that and more: http://www.sciviews.org/Tinn-R/ Best wishes Steve Powell proMENTE social research research | evaluation | training & consulting Kranjčevićeva 35, 71000 Sarajevo mobile: +387 61 215 997 | office: +387 33 556 865 |

Re: [R] SEM - standardized path coefficients? - significant style

2007-09-20 Thread Steve Powell
coeff)$"Pr(>|z|)" into the loop. Very best wishes Steve Powell proMENTE social research research | evaluation | training & consulting Kranjčevićeva 35, 71000 Sarajevo mobile: +387 61 215 997 | office: +387 33 556 865 | fax: +387 33 556 866 skype: stevepowe

Re: [R] SEM - standardized path coefficients?

2007-09-19 Thread Steve Powell
Dear list members, In sem, std.coef() will give me standardized coefficients from a sem model. But is there a trick so that path.diagram can use these coefficients rather than unstandardized ones? Thanks Steve Powell From: John Fox Date: Wed 28 Feb 2007 - 14:37:22 GMT Dear Tim, See

Re: [R] Creating Hmisc labels inside a function

2007-09-18 Thread Steve Powell
www.psih.org -Original Message- From: Frank E Harrell Jr [mailto:[EMAIL PROTECTED] Sent: 17 September 2007 17:18 To: Steve Powell Cc: [EMAIL PROTECTED] Subject: Re: [R] Creating Hmisc labels inside a function Steve Powell wrote: > > Thanks, Frank - it doesn't work though. >

Re: [R] Creating Hmisc labels inside a function

2007-09-17 Thread Steve Powell
with attributes, labels etc. So assign(label(obj),"some label") #doesn't even work outside a function, at the command prompt. Any more ideas anyone? Best wishes Steve Powell proMENTE social research research | evaluation | training & consulting Kranjčevićeva 35, 71000

[R] Creating Hmisc labels inside a function

2007-09-11 Thread Steve Powell
t;) I usually use the "assign" function to make assignments inside functions, but assign will not work with attributes, labels etc. Any ideas? Thanks in advance Steve Powell proMENTE social research research | evaluation | training & consulting Kranjčevićeva 35, 71000 Sarajevo mobil