oc2plot: Plot First Differences from Ordinal DV Model

oc2plotR Documentation

Plot First Differences from Ordinal DV Model

Description

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

Usage

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

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)

davidaarmstrong/damisc documentation built on Oct. 1, 2023, 3:05 p.m.