Learn R Programming

flexCWM (version 1.3)

plot.cwm: Uncertainty Plot for Generalized Linear Mixed CWMs

Description

This plot shows the classification uncertainty in Generalized Linear Mixed CWMs

Usage

## S3 method for class 'cwm':
plot(x, criteria="BIC", regr=TRUE, ctype =c("Xnorm", "Xbin", "Xpois", "Xmult"),
        which="all",...)

Arguments

x
An object of class cwm.
criteria
an optional character string. Among the models tested, it selects the model that fits best according to an information criteria; supported values are: "AIC", "AICc", "AICu", "AIC3", "AWE","BIC", "CAIC", "ICL"
regr
boolean, allows for bivariate regression plot.
ctype
a vector with concomitant variables types to plot.
which
a vector with columns number to plot, or "all" for all the columns
...
further arguments for plot.

Examples

Run this code
data(tourism)
Y <- tourism$overnights
X <- tourism$attendance
#res <- cwm(Y=Y,Xcont=X,k=1:4,seed=1)
#summary(res)
#plot(res)

Run the code above in your browser using DataLab