PDF Case
ps2-regression.pdf
内容摘要
Problem Set 2 Regression and Uncertainty Instructions •Submitboth fileson Canvas:One knitted PDFand original.Rmdfile. –Failure to submit both the knitted PDF and the .Rmd will result in a 20-point deduction. •Your knitted PDF should bereadable on its own. Organize your work using clear section headers, include brief text explanations between code chunks, and display only the outputs needed to answer each question (avoid printing large objects or long intermediate outputs). –Make sure all tables are clearly labeled and easy to read in the final PDF. –For every plot: include a clear title, axis labels (with units if relevant), and readable text. •Include a short“Use of AI”subsection at the end of your submission (even if you used none). –You can use AI tools for debugging error messages, clarifying how an R function works, or checking syntax, etc. Donotuse AI as a substitute for your own understanding—you should be able to explain and justify everything you submit. –Failure to disclose AI usage will result in a 20-point deduction.This exercise is based on the article, Testa, A., Young, J. K., & Mullins, C. (2017). “Does Democracy Enhance or Reduce Lethal Violence? Examining the Role of the Rule of Law”Homicide Studies, Vol. 21, No. 3, pp. 219-239. The paper examines the cross-national causes of homicide rates. Briefly, many scholars have looked at how institutions influences homicide rates, arguing democracy can reduce lethal violence. The authors of the paper claim that all previous claims are incomplete as they do not unpack the concept of democracy and examine different dimensions of the concept such as how having an independent jury impact homicide rates. In short, some democracies may have more homicides than others. Let’s find out why. Here is a description for the variables inhomicide2.dta: Name Description countrycountry names yearyear homi_ratehomicide rate region1the numeric code indicating the…