Description Usage Arguments Details Value
The latent trait (theta) is estimated by calling uniroot
on q = dlogL + C, where dlogL is the first derivative of the log-likelihood, in theta, and C is a function of theta that depends on the method selected. For method = "ML"
, C = 0. For method = "WML"
, C is given by equation 9 of Warm (1989). For method = "MAP"
, C = - theta. Standard errors (or posterior standard deviations) are computed analytically via the test information of each estimator. The value of logL (not the value of q) at the estimate is also provided. If parallel = T
, the call to uniroot
is parallelized via parallel::mclapply
, but the decrease in runtime is negligible for dim(resp) < c(1000, 100)
1 |
resp |
a matrix or data.frame containing the binary item responses. |
parms |
a list or data.frame with elements parms$alpha and parms$beta corresponding to the discrimination and difficulty parameters of the 2PL model, respectively. |
method |
one of |
logical: |
call |
ToDo: 1. Remove and index duplicate response patterns. 2. Find a better way of setting the range of x in uniroot
.
An nrow(resp)
by 3 matrix of loglikleihoods, theta estimates, analytic SEs for each response pattern in resp.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.