I want to calculate the factor scores for the graded response model as follows:
factor.scores.grm(out)
However, only the first 34 cases with factor scores were presented with the message:
[ reached 'max' / getOption("max.print") -- omitted 580 rows ]
How can I get the other cases?
Thanks!
Hi Peter, welcome!
To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:
Hi,
I want to get factor scores of a larger number of subjects and I used the packages: ltm msm polycor and MASS
I gave the following commands:
data<-read.table("sample.dat", header = TRUE)
factor.scores.grm(out)
It worked, but I got the factor scores of only 34 subjects and the message:
[ reached 'max' / getOption("max.print") -- omitted 580 rows ]
Can you help me to get the output for the other subjects.
In the attachment is a small sample of my data.
Thanks,
Peter
q01_1 | q02_4 | q03_4 | q04_2 | q05_1 | q06_4 | q07_2 | q08_4 | q09_2 | q10_4 | q11_2 | q12_1 | q13_3 | q14_2 | q15_1 | q16_3 | q17_2 | q18_3 | q19_1 | q20_3 | q21_1 | q22_3 | q23_4 | q24_3 | q25_1 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4 | 5 | 7 | 7 | 7 | 7 | 1 | 7 | 7 | 6 | 7 | 7 | 7 | 6 | 1 | 6 | 4 | 7 | 6 | 7 | 1 | 1 | 6 | 6 | 6 |
1 | 7 | 6 | 7 | 5 | 7 | 7 | 5 | 6 | 7 | 7 | 1 | 6 | 1 | 4 | 5 | 5 | 6 | 4 | 5 | 7 | 5 | 7 | 1 | 7 |
5 | 6 | 1 | 5 | 7 | 5 | 5 | 6 | 6 | 3 | 7 | 7 | 7 | 5 | 3 | 3 | 7 | 4 | 3 | 6 | 4 | 7 | 4 | 1 | 1 |
1 | 6 | 7 | 7 | 7 | 6 | 1 | 7 | 6 | 5 | 7 | 5 | 6 | 7 | 4 | 6 | 1 | 1 | 6 | 6 | 5 | 6 | 5 | 7 | 5 |
6 | 5 | 1 | 1 | 1 | 6 | 3 | 6 | 6 | 5 | 1 | 4 | 4 | 4 | 1 | 4 | 5 | 6 | 6 | 5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 | 1 | 1 | 2 | 2 | 4 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
7 | 7 | 6 | 7 | 7 | 7 | 1 | 5 | 7 | 7 | 7 | 7 | 7 | 7 | 7 | 7 | 7 | 7 | 6 | 7 | 5 | 6 | 5 | 6 | 7 |
7 | 7 | 6 | 5 | 6 | 7 | 7 | 1 | 7 | 7 | 6 | 7 | 4 | 4 | 2 | 7 | 5 | 7 | 7 | 7 | 4 | 5 | 7 | 5 | 6 |
1 | 4 | 1 | 1 | 4 | 1 | 3 | 1 | 5 | 1 | 1 | 3 | 4 | 1 | 7 | 3 | 1 | 4 | 7 | 4 | 7 | 1 | 4 | 5 | 5 |
7 | 5 | 5 | 5 | 6 | 5 | 4 | 3 | 5 | 7 | 5 | 5 | 1 | 1 | 7 | 4 | 4 | 3 | 5 | 6 | 7 | 1 | 6 | 4 | 6 |
It would be helpful if you put your data into a format that's easy to reproduce.
Using something like dput
or datapasta would be super helpful. If you're not familiar with how to do this already, check out Best Practices: how to prepare your own data for use in a `reprex` if you can’t, or don’t know how to reproduce a problem with a built-in dataset?
In terms of understanding your error message, check this out;
Personally, I don't like to view these kinds of reviews in the console. I use RStudio's IDE and when my data is in the form of a table, I view data in the source pain. That is, you might save this output to a variable, and then view that with the View()
function.
If you get a reprex
up and running I'd be happy to show you.
Thanks! Together with another command I got all the results in the right matrix.
Pjotr
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.