Learn R Programming

CUB (version 0.1)

cush00: CUSH model without covariates

Description

Estimate and validate a CUSH model for given ordinal responses, without covariates.

Usage

cush00(m, ordinal, shelter, makeplot, summary)

Arguments

m
Number of ordinal categories
ordinal
Vector of ordinal responses
shelter
Category corresponding to the shelter choice
makeplot
Logical: if TRUE, the algorithm returns a graphical plot comparing fitted probabilities and observed relative frequencies
summary
Logical: if TRUE, summary results of the fitting procedure are displayed on screen

Value

An object of the class "CUSH"