Learn R Programming

effects (version 3.1-2)

WVS: World Values Surveys

Description

Data from the World Values Surveys 1995-1997 for Australia, Norway, Sweden, and the United States.

Usage

WVS

Arguments

Format

A data frame with 5381 observations on the following 6 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(WVS)

 
if (require(splines) && require(MASS)){  # for bs()
  wvs <- polr(poverty ~ gender + country*(religion + degree + bs(age, 4)), data=WVS)
  
  plot(effect("country*bs(age,4)", wvs, xlevels=list(age=18:83),
    given.values=c(gendermale=0.5)), rug=FALSE) 
  plot(effect("country*bs(age,4)", wvs, xlevels=list(age=18:83),
    given.values=c(gendermale=0.5)), rug=FALSE, style="stacked")
  plot(effect("country*bs(age,4)", wvs, xlevels=list(age=18:83),
    given.values=c(gendermale=0.5), latent=TRUE), rug=FALSE)
}

Run the code above in your browser using DataLab