oc2plot | R Documentation |
Takes the output from ordChange
and turns it into a plot.
oc2plot(ordc, plot = TRUE)
ordc |
The output from |
plot |
Logical indicating whether a plot (if |
Either a lattice
plot or a data.frame
depending on the
specification of the plot
argument.
Dave Armstrong
library(MASS)
data(france)
polr.mod <- polr(vote ~ age + male + retnat + lrself, data=france)
typical.france <- data.frame(
age = 35,
retnat = factor(1, levels=1:3, labels=levels(france$retnat)),
stringsAsFactors=TRUE)
oc.res <- ordChange(polr.mod, data=france, typical.dat=typical.france, sim=TRUE)
oc2plot(oc.res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.