Learn R Programming

bartXViz (version 1.0.8)

svy: Survey Data on Support for Gay Marriage (2006)

Description

A dataset used for modeling support for gay marriage in the United States, combining individual- and state-level covariates from a 2006 survey.

  • A data frame with 5000 rows and 11 variables:

    id

    Unique observation identifier

    state

    Two-letter abbreviation for U.S. state

    stateid

    Numeric identifier for the state

    region

    Region code

    age

    Age group (1 = 18-30, 2 = 31-50, 3 = 51-65, 4 = 65+)

    gXr

    Gender and race interaction

    educ

    Education level (1 = LTHS,2 = HS,3 = Some Coll,4 = Coll+)

    supp_gaymar

    Support for gay marriage (0 = oppose, 1 = support)

    pvote

    Republican presidential vote share in the previous election

    religcon

    Proportion of population identifying as religious conservatives

    libcon

    State-level ideology score (liberal to conservative)

Arguments

References

Bisbee, James. "Barp: Improving mister p using bayesian additive regression trees." American Political Science Review 113.4 (2019): 1060-1065.