Learn R Programming

CUB (version 0.1)

cubvisual: Plot an estimated CUB model

Description

Plotting facility for the CUB estimation of ordinal responses.

Usage

cubvisual(m, ordinal, caption, labelpoint="estim", xlim, ylim)

Arguments

m
Number of ordinal categories
ordinal
Vector of ordinal responses
caption
Characters string for the plot caption (default is "CUB models parameter space")
labelpoint
Characters string describing the label to give to the point estimates (default is "estim")
xlim
Numeric vectors of length 2, giving the x coordinate range (if missing, xlim=c(0,1))
ylim
Numeric vectors of length 2, giving the y coordinate range (if missing, ylim=c(0,1))

Value

A plot of the estimated parameter vector $(\pi, \xi)$ as a point in the parameter space

Details

The estimation is performed via cubforsim. It represents an estimated CUB model as a point in the parameter space with some useful options. If necessary, other estimated models may be added with the standard commands of the R environment (as points(.), for instance).

Examples

Run this code
data(univer)
m<-7
ordinal<-univer[,12] 
cubvisual(m, ordinal)

Run the code above in your browser using DataLab