Learn R Programming

CUB (version 0.1)

inibestcube: Naive estimates for CUBE models without covariates

Description

Compute naive parameter estimates of a CUBE model without covariates for given ordinal responses. These preliminary estimators are used within the package code to start the E-M algorithm.

Usage

inibestcube(m,ordinal)

Arguments

m
Number of ordinal categories
ordinal
Vector of ordinal responses

Value

A vector $(\pi, \xi ,\phi)$ of parameter estimates of a CUBE model without covariates

See Also

inibestcubecov, inibestcubecsi

Examples

Run this code
data(relgoods)
m<-10
ordinal<-na.omit(relgoods[,44])
estim<-inibestcube(m,ordinal)     # Preliminary estimates (pai,csi,phi)

Run the code above in your browser using DataLab