# NOT RUN {
# Castle Doctrine (Uncontrolled)
df_bacon <- bacon(l_homicide ~ post,
data = bacondecomp::castle,
id_var = "state",
time_var = "year")
# Castle Doctrine (Controlled)
ret_bacon <- bacon(l_homicide ~ post + l_pop + l_income,
data = bacondecomp::castle,
id_var = "state",
time_var = "year")
# }
Run the code above in your browser using DataLab