Learn R Programming

CUB (version 1.1.5)

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)

Value

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

Arguments

m

Number of ordinal categories

ordinal

Vector of ordinal responses

See Also

inibestcubecov, inibestcubecsi

Examples

Run this code
data(relgoods)
m<-10
ordinal<-relgoods$SocialNetwork
estim<-inibestcube(m,ordinal)     # Preliminary estimates (pai,csi,phi)

Run the code above in your browser using DataLab