cubshevisual: Plot an estimated CUB model with shelter

Description Usage Arguments Details Value See Also Examples

View source: R/cubshevisual.R

Description

Plotting facility for the CUB estimation of ordinal responses when a shelter effect is included

Usage

1
cubshevisual(ordinal,shelter,csiplot=FALSE,paiplot=FALSE,...)

Arguments

ordinal

Vector of ordinal responses

shelter

Category corresponding to the shelter choice

csiplot

Logical: should ξ or 1-ξ be the y coordinate

paiplot

Logical: should π or 1-π be the x coordinate

...

Additional arguments to be passed to plot() and text(). Optionally, the number m of ordinal categories may be passed: this is recommended if some category has zero frequency.

Details

It represents an estimated CUB model with shelter effect as a point in the parameter space with shelter estimate indicated as label.

Value

For a CUB model with shelter fitted to ordinal, by default it returns a plot of the estimated (1-π, 1-ξ) as a point in the parameter space, labeled with the estimated shelter parameter δ. Depending on csiplot and paiplot and on desired output, x and y coordinates may be set to π and ξ, respectively.

See Also

cubvisual, multicub

Examples

1
2
3
data(univer)
ordinal<-univer$global
cubshevisual(ordinal,shelter=7,digits=3,col="blue",main="Global Satisfaction")

CUB documentation built on March 31, 2020, 5:14 p.m.