[R] poLCA problem
Scott Colwell
@co|we|| @end|ng |rom uogue|ph@c@
Fri Mar 5 14:42:45 CET 2021
Good morning everyone,
I am running into errors with poLCA as follows:
Error in round(mf) : non-numeric argument to mathematical function.
Here is what I have. Both variables are coded as 1, 2, 3
df <- as.data.frame(data)
items <- c("x1", "x2") <- there are more variables but shortened for this
purpose
df2 <- df[items]
i <- cbind(x1, x2)~1
poLCA (i, df2, nclass=2, maxiter=100, nrep=10, verbose =TRUE)
It is after the poLCA that I get the error. Any thoughts on what is causing
this?
Thanks,
Scott
[[alternative HTML version deleted]]
More information about the R-help
mailing list