Learn R Programming

MLCIRTwithin (version 1.0)

lk_obs_score_within: Compute observed log-likelihood and score

Description

Function used within est_multi_poly to compute observed log-likelihood and score.

Usage

lk_obs_score_within(par_comp,lde1,lde2,lpar,lga1,lga2,S,R,yv,k1,k2,rm1,rm2,lv,J,
	                       fv,link,disc,indga1,indga2,glob,refitem,miss,ltype,XX1dis,
	                       XX2dis,Xlabel,ZZ0,fort)

Arguments

par_comp
complete vector of parameters
lde1
length of de1
lde2
length of de2
lpar
length of par
lga1
length of ga1
lga2
length of ga2
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
link
link function
disc
presence of discrimination parameter
indga1
indicator of ga1 parameters
indga2
indicator of ga2 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

Value

  • lklog-likelihood function
  • scscore vector