Warning: package 'brms' was built under R version 4.4.1
Warning: package 'tidybayes' was built under R version 4.4.1
Warning: package 'gtsummary' was built under R version 4.4.1
Warning: package 'brms' was built under R version 4.4.1
Warning: package 'tidybayes' was built under R version 4.4.1
Warning: package 'gtsummary' was built under R version 4.4.1
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`.
[1] "The data we have shows how long an elected official will live after they won and their gender. We are trying to answer the causal effect between males and females. There is concern that longevity for gubernatorial candidates will differ significantly from that for candidates in Senate and other state-wide elections. We are using a Bayesian regression model with the formula lived_after ~ sex * election_age. The interaction between sex and election age has a positive direction, suggesting that as election age increases, the life expectancy difference between male and female governors tends to widen. Males are expected to live 53 years longer but the standard error is from 9 to 93 years. So they are expected to live longer. "
\[ 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 \]
Warning in tidy.brmsfit(x, ..., effects = "fixed"): some parameter names
contain underscores: term naming may be unreliable!
Characteristic |
Beta |
95% CI 1 |
|---|---|---|
| (Intercept) | 20 | -24, 63 |
| sex | ||
| sexMale | 53 | 9.9, 97 |
| election_age | -0.06 | -0.79, 0.66 |
| sex * election_age | ||
| sexMale * election_age | -0.79 | -1.5, -0.07 |
| 1
CI = Credible Interval |
||