Learn R Programming

CUB (version 0.1)

ihg00: Main function for IHG models without covariates

Description

Estimate and validate an IHG model without covariates for given ordinal responses.

Usage

ihg00(m, ordinal, makeplot, summary)

Arguments

m
Number of ordinal categories
ordinal
Vector of ordinal responses
makeplot
Logical: if TRUE, the function 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 "IHG"An object of the class "IHG"

Details

The optimization procedure is run via "optim", option method="Brent" for constrained optimization (lower bound = 0, upper bound=1).