inigrid function

Grid-based preliminary parameter estimates for CUB models

Grid-based preliminary parameter estimates for CUB models

Compute the log-likelihood function of a CUB model with parameter vector (π,ξ)(\pi, \xi) ranging in the Cartesian product between xx and yy, for a given absolute frequency distribution.

inigrid(m,freq,x,y)

Arguments

  • m: Number of ordinal categories
  • freq: Vector of length mm of the absolute frequency distribution
  • x: A set of values to assign to the uncertainty parameter π\pi
  • y: A set of values to assign to the feeling parameter ξ\xi

Returns

It returns the parameter vector corresponding to the maximum value of the log-likelihood for a CUB model without covariates for given frequencies.

Examples

m<-9 x<-c(0.1,0.4,0.6,0.8) y<-c(0.2, 0.5,0.7) freq<-c(10,24,28,36,50,43,23,12,5) ini<-inigrid(m,freq,x,y) pai<-ini[1] csi<-ini[2]

See Also

inibest

  • Maintainer: Rosaria Simone
  • License: GPL-2 | GPL-3
  • Last published: 2024-02-23

Useful links