panel.2cat: Lattice panel function for confidence intervals with capped...

Description Usage Arguments Author(s) Examples

View source: R/DAMisc_functions.R

Description

This panel function is defined to plot confidence intervals in a multi-panel lattice display where the x-variable is categorical. Note, both lower and upper must be passed directly to xyplot as they will be passed down to the panel function.

Usage

1
	panel.2cat(x,y,subscripts, lower,upper)

Arguments

x,y

Data from the call to xyplot.

subscripts

Variable used to created the juxtaposed panels.

lower, upper

95% lower and upper bounds of y.

Author(s)

Dave Armstrong (UW-Milwaukee, Department of Political Science)

Examples

1
2
3
4
5
6
7
8
9
library(car)
library(lattice)
library(effects)
data(Duncan)
Duncan$inc.cat <- cut(Duncan$income, 3)
mod <- lm(prestige~ inc.cat * type + education,
  data=Duncan)
e1 <- effect("inc.cat*type", mod)
update(plot(e1), panel=panel.2cat)

DAMisc documentation built on May 2, 2019, 4:52 p.m.