Bayesian Statistics

Cotter_Bayesian_Stats_Overview.pdf

Use the code to the right to run a function that inouts a set of predictors and covariates. Make sure to have already set the following parameters:

outcome <- "intention"

title = "Bayes regression of Flu intention"

predictors_int <- ("auto_patern_c*construal")

covariates <- c("rural_self","female","black_d","white_d","hispanic_d","ideology","education","married","income","fpl","previous_flu","previous_covid","liberty_gov_m","liberty_life_m","rural_represent_m","rural_life_m","rural_resources_m")

Then run

m7_brms <- run_brms_function(predictors=predictors_main, covariates=nocovariates, outcome=outcome, summary_name = title, data = d_flu)

Practice data options: