I am lost and I kindly ask you, dear R community, for your help:
> raschmix(TPsubmatrix, k=2, scores = "saturated")
2 : *Error in matrix(1, nrow = sum(groups$groupfirst)) : data is too long
In addition: Warning message:
In min(which(rs > 0)) : no non-missing arguments to min; returning Inf
*Error in matrix(1, nrow = sum(groups$groupfirst)) : data is too long
*Error in matrix(1, nrow = sum(groups$groupfirst)) : data is too long
Error in stepFlexmix(.response ~ 1, data = d, k = k, nrep = nrep, cluster = cluster, :
no convergence to a suitable mixture
Does anyone has experience with raschmix() and knows how I have to save my data, so that it can be analysed?
This would be so amazing!
Thank you very much for your help, interest and effort in any case!
I glanced at the documentation , I think you'd only pass a datateix along with a formula, or else you would use other functions to take the matrix and prep it to be passed to that function.
Are you following the documentation, or some written example to guide you.?
The document does contain such examples of forumulas in its section 4 empirical examples. It doesn't in the earlier but for those it passes a simulation object. - r2 <- simRaschmix(design = "rost2")