Function used within est_multi_poly_within
to compute observed log-likelihood and score.
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)
complete vector of parameters
length of de1
length of de2
length of part
length of ga1t
length of ga2t
matrix of responses
matrix of observed responses indicator
vector of frequencies
number of latent classes for the 1st latent variable
number of latent classes for the 2nd latent variable
number of dimensions for the 1st latent variable
number of dimensions for the 2nd latent variable
number of response categories for each item
number of items
indicator of constrained parameters
presence of discrimination parameters
indicator of global parametrization for the covariates
vector of reference items
indicator of presence of missing responses
type of logit
array of covariates for the 1st latent variable
array of covariates for the 2nd latent variable
indicator for covariate configuration
design matrix
to use Fortran
array for the specification of constraints on the support points of the 1st and the 2nd latent variable and for the item difficulty parameters
vector for the specification of constraints on the support points of the 1st and the 2nd latent variable and for the item difficulty parameters
matrix for the specification of constraints on the item discriminating indices for the 1st latent variable
vector for the specification of constraints on the item discriminating indices for the 1st latent variable
matrix for the specification of constraints on the item discriminating indices for the 2nd latent variable
vector for the specification of constraints on the item discriminating indices for the 2nd latent variable
items affected by the 1st latent variable
items affected by the 2nd latent variable
log-likelihood function
score vector