Re: [R] polycor package

2012-11-18 Thread yrosseel
The reason I was working with a correlation matrix is because I wanted to calculate polychoric correlations first before submitting it to the actual sem command. I was unsure whether R would use polychoric correlations when indicating which of the variables are ordered. A final question on the sam

Re: [R] polycor package

2012-11-18 Thread Laura Maria Schwirz
Dear Yves Many thanks for your quick reply, I really appreciate it! The reason I was working with a correlation matrix is because I wanted to calculate polychoric correlations first before submitting it to the actual sem command. I was unsure whether R would use polychoric correlations when indic

Re: [R] polycor package

2012-11-17 Thread yrosseel
Dear Laura, John is correct. The error is produced by the sem() function in the lavaan package. The reason is that you did not use proper names for the function arguments. The correct call should be: sem.cdu= sem(cdu, sample.cov=hetcor, sampl.nobs=1861, meanstructure=F,fixed.x=F) But more

Re: [R] polycor package

2012-11-16 Thread John Fox
Dear Laura, As I explained to you when you wrote to me directly, you're not having trouble with the polycor package, since you have AFAICS successfully computed polychoric correlation among your variables. The error is produced when you call sem(), apparently in the lavaan package (though you d

[R] polycor package

2012-11-16 Thread Laura Maria Schwirz
I am currently working with R's polycor package and I have encountered a problem. I tried to follow the steps as outlined in the sem.pdf file where a CFA model is run using polychoric correlations. Every time I run the command sem(model, data, N=.), I get the following warning message: Warning mess