Estimate multidimensional and multilevel LC IRT model for dichotomous and polytomous responses
Estimate multidimensional and multilevel LC IRT model for dichotomous and polytomous responses
The function performs maximum likelihood estimation of the parameters of the IRT models assuming a discrete distribution for the ability and a discrete distribution for the latent variable at cluster level. Every ability level corresponds to a latent class of subjects in the reference population. Maximum likelihood estimation is based on Expectation- Maximization algorithm.
est_multi_poly_clust(S, kU, kV, W =NULL, X =NULL, clust, start =0, link =0, disc =0, difl =0, multi =1:J, piv =NULL, Phi =NULL, gac =NULL, DeU =NULL, DeV =NULL, fort =FALSE, tol =10^-10, disp =FALSE, output =FALSE)
Arguments
S: matrix of all response sequences observed at least once in the sample and listed row-by-row (use NA for missing response)
kU: number of support points (or latent classes at cluster level)
kV: number of ability levels (or latent classes at individual level)
W: matrix of covariates that affects the weights at cluster level
X: matrix of covariates that affects the weights at individual level
clust: vector of cluster indicator for each unit
start: method of initialization of the algorithm (0 = deterministic, 1 = random, 2 = arguments given as input)
link: type of link function (0 = no link function, 1 = global logits, 2 = local logits); with no link function the Latent Class model results; with global logits the Graded Response model results; with local logits the Partial Credit results (with dichotomous responses, global logits is the same as using local logits resulting in the Rasch or the 2PL model depending on the value assigned to disc)
disc: indicator of constraints on the discriminating indices (0 = all equal to one, 1 = free)
difl: indicator of constraints on the difficulty levels (0 = free, 1 = rating scale parameterization)
multi: matrix with a number of rows equal to the number of dimensions and elements in each row equal to the indices of the items measuring the dimension corresponding to that row
piv: initial value of the vector of weights of the latent classes (if start=2)
Phi: initial value of the matrix of the conditional response probabilities (if start=2)
gac: initial value of the complete vector of discriminating indices (if start=2)
DeU: initial value of regression coefficients for the covariates in W (if start=2)
DeV: initial value of regression coefficients for the covariates in X (if start=2)
fort: to use fortran routines when possible
tol: tolerance level for checking convergence of the algorithm as relative difference between consecutive log-likelihoods
disp: to display the likelihood evolution step by step
output: to return additional outputs (Phi,Pp,Piv)
Returns
piv: estimated vector of weights of the latent classes (average of the weights in case of model with covariates)
Th: estimated matrix of ability levels for each dimension and latent class
Bec: estimated vector of difficulty levels for every item (split in two vectors if difl=1)
gac: estimated vector of discriminating indices for every item (with all elements equal to 1 with Rasch parametrization)
fv: vector indicating the reference item chosen for each latent dimension
Phi: array of the conditional response probabilities for every item and latent class
De: matrix of regression coefficients for the multinomial logit model on the class weights
Piv: matrix of the weights for every response configuration (if output=TRUE)
Pp: matrix of the posterior probabilities for each response configuration and latent class (if output=TRUE)
lk: log-likelhood at convergence of the EM algorithm
np: number of free parameters
aic: Akaike Information Criterion index
bic: Bayesian Information Criterion index
ent: Etropy index to measure the separation of classes
lkv: Vector to trace the log-likelihood evolution across iterations (if output=TRUE)
seDe: Standard errors for De (if output=TRUE)
separ: Standard errors for vector of parameters containing Th and Be (if output=TRUE)
sega: Standard errors for vector of discrimination indices (if output=TRUE)
Vn: Estimated variance-covariance matrix for all parameter estimates (if output=TRUE)
References
Bartolucci, F. (2007), A class of multidimensional IRT models for testing unidimensionality and clustering items, Psychometrika, 72 , 141-157.
Bacci, S., Bartolucci, F. and Gnaldi, M. (2014), A class of Multidimensional Latent Class IRT models for ordinal polytomous item responses, Communication in Statistics - Theory and Methods, 43 , 787-800.
Author(s)
Francesco Bartolucci, Silvia Bacci, Michela Gnaldi - University of Perugia (IT)