Learn R Programming

effects (version 2.0-1)

BEPS: British Election Panel Study

Description

These data are drawn from the 1997-2001 British Election Panel Study (BEPS).

Usage

BEPS

Arguments

References

J. Fox and R. Andersen (2006) Effect displays for multinomial and proportional-odds logit models. Sociological Methodology 36, 225--255.

Examples

Run this code
summary(BEPS)

require(splines)  # for bs()
beps <- multinom(vote ~ age + gender + economic.cond.national + economic.cond.household 
	+ Blair + Hague + Kennedy + bs(Europe, 3)*political.knowledge, data=BEPS)
europe.knowledge <- effect("bs(Europe, 3)*political.knowledge", beps, 
	xlevels=list(Europe=seq(1, 11, length=50), political.knowledge=0:3),
  	given.values=c(gendermale=0.5))
  
plot(europe.knowledge)
  
plot(europe.knowledge, style="stacked", colors=c("blue", "red", "orange"), rug=FALSE)

Run the code above in your browser using DataLab