Hi!!!
I am using this data set
record_id | frequency1 | success2 | reliable3 | discussion4 | contribution5 |
A | 3 | 2 | 3 | 3 | 9 |
B | 4 | 2 | 2 | 2 | 14 |
C | 3 | 3 | 3 | 3 | 9 |
D | 4 | 2 | 3 | 3 | 7 |
E | 5 | 4 | 4 | 4 | 14 |
F | 5 | 4 | 4 | 4 | 2 |
G | 3 | 3 | 4 | 3 | 14 |
H | 5 | 3 | 4 | 3 | 14 |
I | 3 | 4 | 4 | 4 | 5 |
J | 5 | 4 | 4 | 4 | 14 |
K | 4 | 2 | 2 | 2 | 14 |
L | 4 | 2 | 2 | 2 | 14 |
M | 3 | 4 | 4 | 4 | 1 |
N | 3 | 4 | 4 | 4 | 11 |
O | 3 | 4 | 4 | 4 | 9 |
P | 5 | 4 | 4 | 4 | 2 |
Q | 4 | 4 | 4 | 4 | 9 |
R | 6 | 4 | 4 | 4 | 3 |
S | 3 | 3 | 3 | 3 | 5 |
T | 2 | 4 | 3 | 3 | 9 |
I wan to have these results
But I obtain the following message in the log:
Tried really hard to come up with a solution, no success. Thank you for your help, very much appreciated!
Ana
Hi @anavipalma and welcome to the SAS Support Communities (as a first-time poster)!
I have never worked with PROC IRT in practice, but the error message is not specific to this procedure. It just reminds you that the syntax for a name range list uses the double hyphen:
frequency1--contribution5
The single hyphen is used in numbered range lists, which require the numbered variables to have the same "root" (such as "item" in item1-item5).
For the polychoric correlation heat map you need to use the syntax in line 76 of your log (with the two plot requests in parentheses) or a second plots= option. Otherwise, the second polychoric option is not interpreted as part of the plots= option. The itemfit option only applies to binary responses (i.e., variables with only two levels).
Hint: It's better to include SAS code or logs as text (using the "Insert SAS Code" [running-man icon] or "Insert Code" [</> icon] button of the message window, respectively), not as pictures, because then we can copy the code into our SAS sessions.
Hi @anavipalma and welcome to the SAS Support Communities (as a first-time poster)!
I have never worked with PROC IRT in practice, but the error message is not specific to this procedure. It just reminds you that the syntax for a name range list uses the double hyphen:
frequency1--contribution5
The single hyphen is used in numbered range lists, which require the numbered variables to have the same "root" (such as "item" in item1-item5).
For the polychoric correlation heat map you need to use the syntax in line 76 of your log (with the two plot requests in parentheses) or a second plots= option. Otherwise, the second polychoric option is not interpreted as part of the plots= option. The itemfit option only applies to binary responses (i.e., variables with only two levels).
Hint: It's better to include SAS code or logs as text (using the "Insert SAS Code" [running-man icon] or "Insert Code" [</> icon] button of the message window, respectively), not as pictures, because then we can copy the code into our SAS sessions.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.