Main function to estimate and validate a CUB model for explaining uncertainty and feeling for given ratings, with or without covariates and shelter effect.
CUB(Formula, data, ...)
An object of the class "GEM"-CUB": returns a list containing the following results:
Maximum likelihood estimates: \((\pi, \xi)\)
Log-likelihood function at the final estimates
Variance-covariance matrix of final estimates
Number of executed iterations
BIC index for the estimated model
Object of class Formula.
Data frame from which model matrices and response variables are taken.
Additional arguments to be passed for the specification of the model, including covariates matrices Y, W, X for #' for uncertainty, feeling and shelter, respectively.
This is the main function for CUB models, which calls for the corresponding functions whenever
covariates or shelter effect are specified. It performs maximum likelihood estimation via the E-M algorithm
for CUB models and extensions. The optimization procedure is run via "optim".
It is possible to fit data with CUB models, with or without covariates
for the parameters of the mixture model, and CUB models with shelter effect with no covariate included
in the model. The program also checks if the estimated variance-covariance matrix is positive definite:
if not, it prints a warning message and returns a matrix and related results with NA entries.
Piccolo D. and D'Elia A. (2008). A new approach for modelling consumers' preferences, Food Quality and Preference,
18, 247--259
Iannario M. and Piccolo D. (2012). CUB models: Statistical methods and empirical evidence, in:
Kenett R. S. and Salini S. (eds.), Modern Analysis of Customer Surveys: with applications using R,
J. Wiley and Sons, Chichester, 231--258
Iannario M. (2012). Modelling shelter choices in a class of mixture models for ordinal responses,
Statistical Methods and Applications, 21, 1--22
Iannario M. and Piccolo D. (2014). Inference for CUB models: a program in R, Statistica & Applicazioni,
XII n.2, 177--204
Iannario M. (2016). Testing the overdispersion parameter in CUBE models,
Communications in Statistics: Simulation and Computation, 45(5), 1621--1635
probcub00
, probcubp0
, probcub0q
, probcubpq
,
probcubshe1
, loglikCUB
, varmatCUB