lk_obs_score function

Compute observed log-likelihood and score

Compute observed log-likelihood and score

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

lk_obs_score(par_comp, lde, lpar, lga, S, R, yv, k, rm, l, J, fv, link, disc, indga, glob, refitem, miss, ltype, XXdis, Xlabel, ZZ0, fort)

Arguments

  • par_comp: complete vector of parameters
  • lde: length of de
  • lpar: length of par
  • lga: length of ga
  • S: matrix of responses
  • R: matrix of observed responses indicator
  • yv: vector of frequencies
  • k: number of latent classes
  • 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
  • glob: indicator of gloabl parametrization for the covariates
  • refitem: vector of reference items
  • miss: indicator of presence of missing responses
  • ltype: type of logit
  • XXdis: array of covariates
  • Xlabel: indicator for covariate configuration
  • ZZ0: design matrix
  • fort: to use fortran

Returns

  • lk: log-likelihood function

  • sc: score vector

Author(s)

Francesco Bartolucci - University of Perugia (IT)

  • Maintainer: Francesco Bartolucci
  • License: GPL (>= 2)
  • Last published: 2017-06-06

Useful links