multicube {CUB}R Documentation

Joint plot of estimated CUBE models in the parameter space

Description

Return a plot of estimated CUBE models represented as points in the parameter space, where the overdispersion is labeled.

Usage

multicube(listord,mvett,csiplot=FALSE,paiplot=FALSE,...)

Arguments

listord

A data matrix, data frame, or list of vectors of ordinal observations (for variables with different number of observations)

mvett

Vector of number of categories for ordinal variables in listord (optional: if missing, the number of categories is retrieved from data: it is advisable to specify it in case some category has zero frequency)

csiplot

Logical: should ξ\xi or 1ξ1-\xi be the yy coordinate

paiplot

Logical: should π\pi or 1π1-\pi be the xx coordinate

...

Additional arguments to be passed to plot, text, and GEM

Value

Fit a CUBE model to list elements, and then by default it returns a plot of the estimated (1π,1ξ)(1-\pi, 1-\xi) as points in the parameter space, labeled with the estimated overdispersion. Depending on csiplot and paiplot and on desired output, xx and yy coordinates may be set to π\pi and ξ\xi, respectively.

Examples

m1<-5; m2<-7;  m3<-9
pai<-0.7;csi<-0.6;phi=0.1
n1<-1000; n2<-500; n3<-1500
ord1<-simcube(n1,m1,pai,csi,phi)
ord2<-simcube(n2,m2,pai,csi,phi)
ord3<-simcube(n3,m3,pai,csi,phi)
listord<-list(ord1,ord2,ord3)
multicube(listord,labels=c("m=5","m=7","m=9"),pos=c(3,1,4),expinform=TRUE)

[Package CUB version 1.1.5 Index]