lk_obs_score_within {MLCIRTwithin} | R Documentation |
Compute observed log-likelihood and score
Description
Function used within est_multi_poly_within
to compute observed log-likelihood and score.
Usage
lk_obs_score_within(part_comp, lde1, lde2, lpart, lga1t, lga2t, S, R, yv, k1, k2,
rm1, rm2, lv, J, fv, disc, glob, refitem, miss, ltype, XX1dis, XX2dis,
Xlabel, ZZ0, fort, Zpar, zpar, Zga1, zga1, Zga2, zga2, items1, items2)
Arguments
part_comp |
complete vector of parameters |
lde1 |
length of de1 |
lde2 |
length of de2 |
lpart |
length of part |
lga1t |
length of ga1t |
lga2t |
length of ga2t |
S |
matrix of responses |
R |
matrix of observed responses indicator |
yv |
vector of frequencies |
k1 |
number of latent classes for the 1st latent variable |
k2 |
number of latent classes for the 2nd latent variable |
rm1 |
number of dimensions for the 1st latent variable |
rm2 |
number of dimensions for the 2nd latent variable |
lv |
number of response categories for each item |
J |
number of items |
fv |
indicator of constrained parameters |
disc |
presence of discrimination parameters |
glob |
indicator of global parametrization for the covariates |
refitem |
vector of reference items |
miss |
indicator of presence of missing responses |
ltype |
type of logit |
XX1dis |
array of covariates for the 1st latent variable |
XX2dis |
array of covariates for the 2nd latent variable |
Xlabel |
indicator for covariate configuration |
ZZ0 |
design matrix |
fort |
to use Fortran |
Zpar |
array for the specification of constraints on the support points of the 1st and the 2nd latent variable and for the item difficulty parameters |
zpar |
vector for the specification of constraints on the support points of the 1st and the 2nd latent variable and for the item difficulty parameters |
Zga1 |
matrix for the specification of constraints on the item discriminating indices for the 1st latent variable |
zga1 |
vector for the specification of constraints on the item discriminating indices for the 1st latent variable |
Zga2 |
matrix for the specification of constraints on the item discriminating indices for the 2nd latent variable |
zga2 |
vector for the specification of constraints on the item discriminating indices for the 2nd latent variable |
items1 |
items affected by the 1st latent variable |
items2 |
items affected by the 2nd latent variable |
Value
lk |
log-likelihood function |
sc |
score vector |
Author(s)
Francesco Bartolucci - University of Perugia (IT)