| WVS {effects} | R Documentation |
Data from the World Values Surveys 1995-1997 for Australia, Norway, Sweden, and the United States.
WVS
A data frame with 5381 observations on the following 6 variables.
poverty“Do you think that what the government is doing for people in poverty in
this country is about the right amount, too much, or too little?” (ordered):
Too Little, About Right, Too Much
.
religionMember of a religion: no or yes.
degreeHeld a university degree: no or yes.
countryAustralia, Norway, Sweden, or USA.
agein years.
gendermale or female.
J. Fox and R. Andersen (2006) Effect displays for multinomial and proportional-odds logit models. Sociological Methodology 36, 225–255.
summary(WVS)
require(splines) # 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)