Warning in geom_histogram(aes(y = after_stat(count/sum(count)), alpha = 0.5, :
Ignoring unknown aesthetics: bins and position
`stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
Warning in geom_histogram(aes(y = after_stat(count/sum(count)), alpha = 0.5, :
Ignoring unknown aesthetics: bins and position
`stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
Using data from all deceased gubernatorial candidates in the United States between 1945 and 2012, we seek to forecast candidate longevity post-election. It may not be representative because only the two candidates with the most votes are included in the data set. We built a model using brms in R to explore the relationship between the candidate’s sex, their age at election, and how these factors interact. Our model indicates that male candidates generally live longer post-election than female candidates. At an election age of 50, males also live longer than female candidates.
\[ lived\_after_i = \beta_0 + \beta_1 male_i + \beta_2 c\_election\_age_i + \\ \beta_3 male_i * c\_election\_age_i + \epsilon_i \]