Learn R Programming

CUB (version 1.1.5)

loglikcubshe: Log-likelihood of a CUB model with shelter effect

Description

Compute the log-likelihood of a CUB model with a shelter effect for the given absolute frequency distribution.

Usage

loglikcubshe(m, freq, pai1, pai2, csi, shelter)

Arguments

m

Number of ordinal categories

freq

Vector of the absolute frequency distribution

pai1

Mixing coefficient for the shifted Binomial component of the mixture distribution

pai2

Mixing coefficient for the discrete Uniform component of the mixture distribution

csi

Feeling parameter

shelter

Category corresponding to the shelter choice