Message-ID: <YT1PR01MB244344ADE1C28B38DE1EF2F8CE969@YT1PR01MB2443.CANPRD01.PROD.OUTLOOK.COM>
Date: 2021-03-05T13:42:45Z
From: Scott Colwell
Subject: poLCA problem
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]]