Skip to content

Commit 0e88dc1

Browse files
committed
...
1 parent c913208 commit 0e88dc1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

nominal_standard.qmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ Note: This is an experimental feature.
88

99
The IRW nominal data standard is meant to describe data wherein responses are nominal and not ordinal. There are two distinct types of such data. The first type involves responses in a necessarily finite (but nominal) set of mutually exclusive categories; a typical example here might be the specific option from a multiple choice item that is selected. The second type involves responses that are potentially infinite; examples here would be constructed responses like essays.
1010

11-
- `text`: This is the nominal version of `resp`.
11+
- `text`: This is the nominal version of `resp`.
1212

1313
## Accessing the nominal data
1414

1515
Documentation related to the tables can be found [here](https://docs.google.com/spreadsheets/d/12tM4vADKcUm5LGOGRwQ5_HKkdYa3mZUaKbFUqgs2U_w/edit?gid=0#gid=0).
1616

1717
## An example
1818

19-
Let's look at an example of how we can fit the nominal response model to a table from the nominal branch of the IRW.
19+
Let's look at an example of how we can fit the nominal response model to a table (`preference_inventory`) from the nominal branch of the IRW and generated category response functions for all items..
2020

2121
::: panel-tabset
2222
## R
@@ -28,10 +28,10 @@ resp<-irw::irw_long2resp(df,resp_col='text')
2828
resp$id<-NULL
2929
library(mirt)
3030
m<-mirt(resp,1,'nominal')
31-
f<-function(mod,n) {
31+
f<-function(mod,n) {
3232
extr <- extract.item(mod,n)
3333
Theta <- matrix(seq(-6,6, length.out=2000))
34-
pr <- probtrace(extr, Theta)
34+
pr <- probtrace(extr, Theta)
3535
list(Theta,pr)
3636
}
3737
out<-list()

0 commit comments

Comments
 (0)