lk_obs_score_clust {MultiLCIRT} | R Documentation |
Compute observed log-likelihood and score
Description
Function used within est_multi_poly
to compute observed log-likelihood and score.
Usage
lk_obs_score_clust(par_comp, lde1, lde2, lpar, lga, S, R, kU, kV, rm,
l, J, fv, link, disc, indga, refitem, miss, ltype,
WWdis, Wlabel, XXdis, Xlabel, ZZ0, clust, fort)
Arguments
par_comp |
complete vector of parameters |
lde1 |
length of de |
lde2 |
length of de |
lpar |
length of par |
lga |
length of ga |
S |
matrix of responses |
R |
matrix of observed responses indicator |
kU |
number of latent classes at cluster level |
kV |
number of latent classes at individual level |
rm |
number of dimensions |
l |
number of respnse categories |
J |
number of items |
fv |
indicator of constrained parameters |
link |
link function |
disc |
presence of discrimination parameter |
indga |
indicator of gamma parameters |
refitem |
vector of reference items |
miss |
indicator of presence of missing responses |
ltype |
type of logit |
WWdis |
array of covariates at cluster level |
Wlabel |
indicator for covariate configuration at cluster level |
XXdis |
array of covariates at individual level |
Xlabel |
indicator for covariate configuration at individual level |
ZZ0 |
design matrix |
clust |
vector of cluster indicator for each unit |
fort |
to use fortran |
Value
lk |
log-likelihood function |
sc |
score vector |
Author(s)
Francesco Bartolucci - University of Perugia (IT)