Five Parameters

Author

Roshan Ranganathan

Warning: package 'tidyverse' was built under R version 4.4.1
── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr     1.1.4     ✔ readr     2.1.5
✔ forcats   1.0.0     ✔ stringr   1.5.1
✔ ggplot2   3.5.1     ✔ tibble    3.2.1
✔ lubridate 1.9.3     ✔ tidyr     1.3.1
✔ purrr     1.0.2     
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag()    masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
Warning: package 'brms' was built under R version 4.4.1
Loading required package: Rcpp
Loading 'brms' package (version 2.21.0). Useful instructions
can be found by typing help('brms'). A more detailed introduction
to the package is available through vignette('brms_overview').

Attaching package: 'brms'

The following object is masked from 'package:stats':

    ar
Warning: package 'tidybayes' was built under R version 4.4.1

Attaching package: 'tidybayes'

The following objects are masked from 'package:brms':

    dstudent_t, pstudent_t, qstudent_t, rstudent_t
Warning: package 'gtsummary' was built under R version 4.4.1

Using data from all deceased candidates in the United States between 1945 and 2012, we aim to predict their longevity after election. Using data from all deceased gubernatorial candidates in the United States from elections held between 1945 and 2012, we aim to forecast candidate longevity in state-wide US races post-election. We are concerned that longevity for gubernatorial candidates may differ significantly from that of candidates in Senate and other state-wide elections. Using data from deceased U.S. gubernatorial candidates between 1945 and 2012, we forecast post-election longevity. We are using a Bayesian regression model with lived_after ~ sex * election_age, where lived_after represents life expectancy. The results suggest that as election age increases, the longevity gap between male and female governors widens.

\[ 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