oc2plot {DAMisc}R 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)

[Package DAMisc version 1.7.2 Index]