View source: R/dich_response_model.R
dich_response_model | R Documentation |
This function calculates predictions and log-likelihood values for a dichotomous response model framed using generalized latent variable modeling (GLVM; Skrondal & Rabe-Hesketh, 2004).
dich_response_model( y = NULL, nu = NULL, lambda = NULL, kappa = NULL, gamma = NULL, omega = NULL, zeta = NULL, link = "probit" )
y |
Matrix of item responses (K by IJ). |
nu |
Matrix of item intercept parameters (K by IJ). |
lambda |
Matrix of item structure parameters (IJ by JM). |
kappa |
Matrix of item guessing parameters (K by IJ). |
gamma |
Matrix of experimental structure parameters (JM by MN). |
omega |
Examinee-level effects of the experimental manipulation (K by MN). |
zeta |
Condition-level effects of the experimental manipulation (K by JM). |
link |
Choose between logit or probit link functions. |
p = response probability matrix (K by IJ); yhatstar = latent response variate matrix (K by IJ); loglikelihood = model log-likelihood (scalar).
I = Number of items per condition; J = Number of conditions; K = Number of examinees; M Number of ability (or trait) dimensions; N Number of contrasts (should include intercept).
Skrondal, A., & Rabe-Hesketh, S. (2004). Generalized latent variable modeling: Multilevel, longitudinal, and structural equation models. Boca Raton: Chapman & Hall/CRC.
mod <- dich_response_model(y = sdirt$y, nu = sdirt$nu, lambda = sdirt$lambda, gamma = sdirt$gamma, omega = sdirt$omega, zeta = sdirt$zeta)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.