Learn R Programming

CUB (version 0.1)

cushcov: CUSH model with covariates

Description

Estimate and validate a CUSH model for ordinal responses, with covariates to explain the shelter effect.

Usage

cushcov(m, ordinal, X, shelter, makeplot, summary)

Arguments

m
Number of ordinal categories
ordinal
Vector of ordinal responses
X
Matrix of selected covariates for explaining the shelter effect
shelter
Category corresponding to the shelter choice
makeplot
Logical: if TRUE and if only one dichotomous covariate is included in the model, with levels (0,1), the function returns a graphical plot comparing the distributions of the responses conditioned to the value of the covariate
summary
Logical: if TRUE, summary results of the fitting procedure are displayed on screen

Value

An object of the class "CUSH"