Learn R Programming

CMHNPA (version 1.1.1)

marriage: Marriage data

Description

Scores of 1, 2 and 3 are assigned to the responses agree, neutral and disagree respectively to the proposition "Homosexuals should be able to marry" and scores of 1, 2 and 3 are assigned to the religious categories fundamentalist, moderate and liberal respectively.

Usage

data(marriage)

Arguments

Format

A data frame with 133 rows and three columns.

education

highest level of eduction for the respondent

religion

level of religiosity. Scores of 1, 2 and 3 are assigned to the religious categories fundamentalist, moderate and liberal respectively

opinion

the response to the proposition: "Homosexuals should be able to marry". Scores of 1, 2 and 3 are assigned to the responses agree, neutral and disagree respectively

References

Agresti, A. (2002). Categorical Data Analysis, 2nd ed; Wiley: New York.

Examples

Run this code
attach(marriage)
lm(as.numeric(opinion)~religion+education)

Run the code above in your browser using DataLab