[R] LCA (e1071 package): error

Evgenia evgts at aueb.gr
Mon Feb 16 17:07:39 CET 2009


Before using lca,
try
data<-as.matrix(data).

For example when I tried using lca " lca(LSAT,2,niter=100)"
for known LSAT data (library ltm), I took error messages.

But, when I use
data<-as.matrix(LSAT)
lca(data,2,niter=100)

I took results for lca
King Regards,

Evgenia



Tryntsje Wesselius wrote:
> 
> Hello,
> 
> I will use the lca method in the e1071 package. But I get the following
> error:
> Error in pas[j, ] <- drop(exp(rep(1, nvar) %*% log(mp))) :
>   number of items to replace is not a multiple of replacement length
> 
> Does anybody know this error and knows what this means?
> 
> Kind regards,
> 
> Tryntsje
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
> 
> 

-- 
View this message in context: http://www.nabble.com/LCA-%28e1071-package%29%3A-error-tp21478519p22040077.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list