Data too long - Why?

I have an error message which I don't understand:

Error in matrix(1, nrow = sum(groups$groupfirst)) : data is too long

It appears when using raschmix():

nicetry_mix1 <- raschmix(Eleven ~ Sksum, data = nicetry, k = 1:4,scores = "meanvar")

That's the structure of my data

> str(nicetry)
'data.frame':	99 obs. of  3 variables:
 $ Gender: Factor w/ 3 levels "w","m","x": 1 1 2 1 2 2 1 2 2 1 ...
 $ Sksum : int  23 28 26 38 30 21 29 39 32 29 ...
 $ Eleven: num [1:99, 1:11] 3 2 5 4 1 1 3 1 4 3 ...
  ..- attr(*, "dimnames")=List of 2
  .. ..$ : NULL
  .. ..$ : chr [1:11] "Item011" "Item021" "Item031" "Item041" ...

Does anyone have an idea what the error message means? I am so lost!

Thank you very much for any suggestions!

Did you write the function raschmix yourself or is it part of a package?
If it is part of a package then (tell us and) check if your input satisfies the documentation of the function.

When asking this type of questions it is most helpful to produce a example that the reader can execute. Search in this group for the word reprex or reproducible example.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.