Description Usage Arguments Details Value References Examples
View source: R/get_surrogates.R
Compute surrogate theta values as the set of normalized first principal component scores.
1 | get_surrogates(dat)
|
dat |
Matrix of binary item responses. |
Compute surrogate theta values as the normalized first principal component scores.
Vector of surrogate theta values.
Liang, L., & Browne, M. W. (2015). A quasi-parametric method for fitting flexible item response functions. Journal of Educational and Behavioral Statistics, 40, 5–34. doi: 10.3102/1076998614556816
1 2 3 4 5 6 7 | set.seed(2342)
bmat <- sim_bmat(n_items = 5, k = 2)$bmat
theta <- rnorm(50)
dat <- sim_data(bmat = bmat, theta = theta)
tsur <- get_surrogates(dat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.