12.1 Data Set 1
Each year, the Human Rights Campaign releases a “State Equality Index” which monitors the number of LQBTQ+ rights laws in each state
- data from the 2019 index compiled by Sarah Warbelow, Courtnay Avant, and Colin Kutney (2019).
# Load data (from the bayesrules package)
data(equality_index)
<- equality_index equality
\(Y_{i}\): number of anti-discrimination laws
- numerical (integer) response variable
- \(i \in \{1, 2, ..., 50\}\)
\(X_{i1}\): percentage urban
indicators \(X_{i2}\) and \(X_{i3}\)
\[X_{i2} = \begin{cases} 1 & \text{GOP} \\ 0 & \text{otherwise} \end{cases} \quad\text{and}\quad X_{i3} = \begin{cases} 1 & \text{swing} \\ 0 & \text{otherwise} \end{cases}\]