varcovcub0q: Variance-covariance matrix of CUB models with covariates for...

Description Usage Arguments Details References Examples

Description

Compute the variance-covariance matrix of parameter estimates of a CUB model with covariates for the feeling component.

Usage

1
varcovcub0q(m, ordinal, W, pai, gama)

Arguments

m

Number of ordinal categories

ordinal

Vector of ordinal responses

W

Matrix of covariates for explaining the feeling component

pai

Uncertainty parameter

gama

Vector of parameters for the feeling component, whose length is NCOL(W)+1 to include an intercept term in the model (first entry of gama)

Details

The function checks if the variance-covariance matrix is positive-definite: if not, it returns a warning message and produces a matrix with NA entries.

References

Piccolo D.(2006), Observed Information Matrix for MUB Models. Quaderni di Statistica, 8, 33–78,

Examples

1
2
3
4
5
6
7
data(univer)
m<-7
ordinal<-univer[,9]
pai<-0.86
gama<-c(-1.94, -0.17)
W<-univer[,4]           
varmat<-varcovcub0q(m, ordinal, W, pai, gama)


Search within the CUB package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.