oc2plot: Plot First Differences from Ordinal DV Model

Description Usage Arguments Value Author(s) Examples

Description

Takes the output from ordChange and turns it into a plot.

Usage

1
oc2plot(ordc, plot = TRUE)

Arguments

ordc

The output from ordChange.

plot

Logical indicating whether a plot (if TRUE) or data (if FALSE) should be returned.

Value

Either a lattice plot or a data.frame depending on the specification of the plot argument.

Author(s)

Dave Armstrong

Examples

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)

DAMisc documentation built on Jan. 12, 2022, 1:07 a.m.