Description Usage Arguments Examples
View source: R/PrepareChecks.R
Takes output from ConjointChecks
and produces a matrix showing
the percentage of reported violations at each cell.
1 | PrepareChecks(resp,ss.lower=10)
|
resp |
Raw dichotomously coded response data. Columns represent items and rows represent individuals. |
ss.lower |
Only sum scores that have at least this many distinct individuals with that sum score will be used. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #simulated Rasch example
n.items<-20
n.respondents<-2000
#simulate data
rnorm(n.items)->diff
rnorm(n.respondents)->abil
matrix(abil,n.respondents,n.items,byrow=FALSE)->m1
matrix(diff,n.respondents,n.items,byrow=TRUE)->m2
m1-m2 -> kern
exp(kern)/(1+exp(kern))->pv
runif(n.items*n.respondents)->test
ifelse(pv>test,1,0)->resp
#now check
PrepareChecks(resp)->obj
|
Loading required package: parallel
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.