Learn R Programming

FastCUB (version 0.0.3)

fastcubpq: Main function for CUB models with covariates for both the uncertainty and the feeling components

Description

Estimate and validate a CUB model for given ordinal responses, with covariates for explaining both the feeling and the uncertainty components by means of logistic transform.

Usage

fastcubpq(m,ordinal,Y,W,starting=NULL,maxiter,toler,iterc=3,invgen=TRUE)

Value

An object of the class "fastCUB"

Arguments

m

Number of ordinal categories

ordinal

Vector of ordinal responses

Y

Matrix of selected covariates for explaining the uncertainty component

W

Matrix of selected covariates for explaining the feeling component

starting

Starting values for the algorithm

maxiter

Maximum number of iterations allowed for running the optimization algorithm

toler

Fixed error tolerance for final estimates

iterc

Iteration from which the acceleration strategy starts

invgen

Logical: should the recursive formula for the inverse of the information matrix be considered? (Default is TRUE)

See Also

loglikcubpq, inibestgama