Download 23/replication_package/Code/replicate_table_4.R from chuxuan/REPRO-Bench: direct link, hf CLI and curl.
- Browser
- Download file 1.28 kB
-
https://huggingface.co/datasets/chuxuan/REPRO-Bench/resolve/main/23/replication_package/Code/replicate_table_4.R
- Command line
-
hf download hf://datasets/chuxuan/REPRO-Bench/23/replication_package/Code/replicate_table_4.R
-
curl -L -o replicate_table_4.R https://huggingface.co/datasets/chuxuan/REPRO-Bench/resolve/main/23/replication_package/Code/replicate_table_4.R
1.28 kB
| ##--##--##--## | |
| ## Table 4 | |
| ##--##--##--## | |
| ## A. U.S. sample | |
| mod1 = lm(degree_violence ~ black + group_goal + commitment , data=us_survey_wave2) | |
| mod2 = lm(recall_violence2 ~ black + group_goal + commitment, data=us_survey_wave2) | |
| mod3 = lm(police_action_required ~ black + group_goal + commitment, data=us_survey_wave2) | |
| stargazer(mod1, mod2, mod3, | |
| covariate.labels = c("Black protesters", "Minority group goal", | |
| "Commitment to nonviolence", "Intercept: White protesters, generic goal, no commitment"), | |
| out = "Tables/table_4_panel_A.tex") | |
| ## B. Israel sample | |
| mod1_israel = lm(degree_violence ~ identity_protesters + group_goal + commitment, data=isr_survey_wave2) | |
| mod2_israel = lm(recall_violence2 ~ identity_protesters + group_goal + commitment, data=isr_survey_wave2) | |
| mod3_israel = lm(police_action_required ~ identity_protesters + group_goal + commitment, data=isr_survey_wave2) | |
| stargazer(mod1_israel, mod2_israel, mod3_israel, | |
| covariate.labels = c("Ethiopian protesters", "Arab protesters", | |
| "Minority group goal", "Commitment to nonviolence", | |
| "Intercept: White protesters, generic goal, no commitment"), | |
| out = "Tables/table_4_panel_B.tex") | |