Learn R Programming

effects (version 3.1-2)

BEPS: British Election Panel Study

Description

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

Usage

BEPS

Arguments

Format

A data frame with 1525 observations on the following 10 variables.

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)

  
if (require(splines) && require(nnet)){ # for bs() and multinom()
  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