Re: [R] CFA in R/sem package

2009-04-09 Thread Jarrett Byrnes
Sure, something like that. Store each model as an element of a list, and then use something like for(i in 1:4){ indices<-combn(1:4, i) for (j in 1:length(indices[1,])){ new.model<-combine.models(model.pieces[ indices[,j] ] ) #code for analysis }

Re: [R] CFA in R/sem package

2009-04-09 Thread Iuri Gavronski
Jarret, I've donwloaded the zip file and installed, but maybe have lost some pre-req check. I have manually installed sna. Anyway, which would be the approach you suggest? Making (using my example) 4 different models, one for each construct, then use combine.models and add.to.models to create the

Re: [R] CFA in R/sem package

2009-04-09 Thread Jarrett Byrnes
install.packages("sem-additions",repos="http://R-Forge.R-project.org";) Sorry, it's sem-additions on r-forge. Not sem.additions, which is what I had originally called it. But they won't take . in the name of a package. On Apr 9, 2009, at 4:07 PM, Iuri Gavronski wrote: Jarret, Look: ins

Re: [R] CFA in R/sem package

2009-04-09 Thread Iuri Gavronski
Jarret, Look: > install.packages("sem.additions", repos="http://R-Forge.R-project.org";) Warning message: package ‘sem.additions’ is not available > Best, Iuri. On Thu, Apr 9, 2009 at 3:10 PM, Jarrett Byrnes wrote: > Ivan, > > I recently put together the sem.additions package over at R forge i

Re: [R] CFA in R/sem package

2009-04-09 Thread Jarrett Byrnes
Ivan, I recently put together the sem.additions package over at R forge in part for just such a multiple model problem. THere are a variety of methods that make it easy to add/delete links that could be automated with a for loop and something from the combn package, I think. http://r-for

[R] CFA in R/sem package

2009-04-09 Thread Iuri Gavronski
Hi, I am not sure if R-help is the right forum for my question. If not, please let me know. I have to do some discriminant validity tests with some constructs. I am using the method of doing a CFA constraining the correlation of a pair of the constructs to 1 and comparing the chi-square of this c