Learn R Programming

CUB (version 1.1.5)

A Class of Mixture Models for Ordinal Data

Description

For ordinal rating data, estimate and test models within the family of CUB models and their extensions (where CUB stands for Combination of a discrete Uniform and a shifted Binomial distributions); Simulation routines, plotting facilities and fitting measures are also provided.

Copy Link

Version

Install

install.packages('CUB')

Version

1.1.5

License

GPL-2 | GPL-3

Maintainer

Last Published

February 23rd, 2024

Functions in CUB (1.1.5)

CUB_package

CUB package
CUB

Main function for CUB models
GEM

Main function for GEM models
CUSH

Main function for CUSH models
BIC.GEM

S3 BIC method for class "GEM"
Hadprod

Hadamard product of a matrix with a vector
IHG

Main function for IHG models
CUBE

Main function for CUBE models
Qdue

Auxiliary function for the log-likelihood estimation of CUBE models with covariates
Q2gecub

Auxiliary function for the log-likelihood estimation of GeCUB models.
betabinomial

Beta-Binomial probabilities of ordinal responses, with feeling and overdispersion parameters for each observation
bitgama

Shifted Binomial distribution with covariates
bitcsi

Shifted Binomial probabilities of ordinal responses
betabinomialcsi

Beta-Binomial probabilities of ordinal responses, given feeling parameter for each observation
auxmat

Auxiliary matrix
betar

Beta-Binomial distribution
chi2cub

Pearson \(X^2\) statistic
Qunogecub

Auxiliary function for the log-likelihood estimation of GeCUB models.
chi2cub1cov

Pearson \(X^2\) statistic for CUB models with one discrete covariate for feeling
Quno

Auxiliary function for the log-likelihood estimation of CUBE models with covariates
cub00

Main function for CUB models without covariates
cormat

Correlation matrix for estimated model
cub0q

Main function for CUB models with covariates for the feeling component
coef.GEM

S3 Method: coef for class "GEM"
cubevisual

Plot an estimated CUBE model
chi2cub2cov

Pearson \(X^2\) statistic for CUB models with one discrete covariate for feeling
cubecsi

Main function for CUBE models with covariates only for feeling
cubp0

Main function for CUB models with covariates for the uncertainty component
cubecov

Main function for CUBE models with covariates
cube000

Main function for CUBE models without covariates
deltaprob

Mean difference of a discrete random variable
cushcov

CUSH model with covariates
cush00

CUSH model without covariates
cubpq

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

Auxiliary function for the log-likelihood estimation of CUB models
dissim

Normalized dissimilarity measure
effe10

Auxiliary function for the log-likelihood estimation of CUB models
cubshevisual

Plot an estimated CUB model with shelter
cubshe

Main function for CUB models with a shelter effect
effeihg

Auxiliary function for the log-likelihood estimation of IHG models without covariates
ellegecub

Log-likelihood function for gecub distribution
effecush

Auxiliary function for the log-likelihood estimation of CUSH models with covariates
expcub00

Expectation of CUB distributions
cubvisual

Plot an estimated CUB model
effecubecsi

Auxiliary function for the log-likelihood estimation of CUBE models with covariates only for the feeling component
effecube

Auxiliary function for the log-likelihood estimation of CUBE models without covariates
expcube

Expectation of CUBE models
gecubpqs

Main function for CUB models with covariates for all the components
gini

Normalized Gini heterogeneity index
inibestcubecov

Preliminary parameter estimates for CUBE models with covariates
inibestcubecsi

Preliminary estimates of parameters for CUBE models with covariates only for feeling
ihg00

Main function for IHG models without covariates
fitted.GEM

S3 method "fitted" for class "GEM"
ihgcov

Main function for IHG models with covariates
loglikCUSH

Log-likelihood function for CUSH models
loglikcub0q

Log-likelihood function of a CUB model with covariates for the feeling component
laakso

Normalized Laakso and Taagepera heterogeneity index
loglikcub00

Log-likelihood function of a CUB model without covariates
loglikCUBE

Log-likelihood function for CUBE models
logLik.GEM

logLik S3 Method for class "GEM"
kkk

Sequence of combinatorial coefficients
ellecub

Log-likelihood function of a CUB model without covariates
effeihgcov

Auxiliary function for the log-likelihood estimation of IHG models with covariates
loglikcubecov

Log-likelihood function of a CUBE model with covariates
loglikcubecsi

Log-likelihood function of CUBE model with covariates only for feeling
iniihg

Moment estimate for the preference parameter of the IHG distribution
inigrid

Grid-based preliminary parameter estimates for CUB models
inibestgama

Preliminary parameter estimates of a CUB model with covariates for feeling
loglikcubshe

Log-likelihood of a CUB model with shelter effect
loglikcubpq

Log-likelihood function of a CUB model with covariates for both feeling and uncertainty
loglikIHG

Log-likelihood function for IHG models
logis

The logistic transform
inibest

Preliminary estimators for CUB models without covariates
inibestcube

Naive estimates for CUBE models without covariates
print.GEM

S3 method: print for class "GEM"
loglikcubp0

Log-likelihood function of a CUB model with covariates for the uncertainty component
loglikCUB

Log-likelihood function for CUB models
loglikcuben

Log-likelihood function of CUBE models for ordinal data
probcubshe1

probcubshe1
probcub00

Probability distribution of a CUB model without covariates
loglikihgcov

Log-likelihood function for the IHG model with covariates
logscore

Logarithmic score
loglikcushcov

Log-likelihood function for a CUSH model with covariates
probcub0q

Probability distribution of a CUB model with covariates for the feeling component
loglikcush00

Log-likelihood function for a CUSH model without covariates
probcubpq

Probability distribution of a CUB model with covariates for both feeling and uncertainty
makeplot

Plot facilities for GEM objects
probcush

Probability distribution of a CUSH model
probgecub

Probability distribution of a GeCUB model
parnames

Generic function for coefficient names
varcovcub00

Variance-covariance matrix of a CUB model without covariates
relgoods

Relational goods and Leisure time dataset
probbit

Probability distribution of a shifted Binomial random variable
varcovcub0q

Variance-covariance matrix of CUB models with covariates for the feeling component
simcush

Simulation routine for CUSH models
probihgcovn

Probability distribution of an IHG model with covariates
multicub

Joint plot of estimated CUB models in the parameter space
multicube

Joint plot of estimated CUBE models in the parameter space
probihg

Probability distribution of an IHG model
summary.GEM

S3 method: summary for class "GEM"
plotloglikihg

Plot of the log-likelihood function of the IHG distribution
varcovcubeobs

Variance-covariance matrix for CUBE models based on the observed information matrix
simihg

Simulation routine for IHG models
probcubshe3

probcubshe3
probcubshe2

probcubshe2
varcovgecub

Variance-covariance matrix of a CUB model without covariates
probcubp0

Probability distribution of a CUB model with covariates for the uncertainty component
probcube

Probability distribution of a CUBE model without covariates
simcube

Simulation routine for CUBE models
simcub

Simulation routine for CUB models
varcovcubshe

Variance-covariance matrix for CUB models with shelter effect
varcovcubp0

Variance-covariance matrix of CUB model with covariates for the uncertainty parameter
varcovcubpq

Variance-covariance matrix of a CUB model with covariates for both uncertainty and feeling
varcub00

Variance of CUB models without covariates
varcovcubecov

Variance-covariance matrix of a CUBE model with covariates
simcubshe

Simulation routine for CUB models with shelter effect
varcovcubeexp

Variance-covariance matrix for CUBE models based on the expected information matrix
varmatCUBE

Variance-covariance matrix for CUBE models
varcube

Variance of CUBE models without covariates
univer

Evaluation of the Orientation Services 2002
vcov.GEM

S3 method vcov() for class "GEM"
varmatCUB

Variance-covariance matrix for CUB models