Description Usage Arguments Value Author(s) Examples
Takes the output from ordChange
and turns it into a plot.
1 |
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
1 2 3 4 5 6 7 8 9 | 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.