Due before class May 7th.
hw06
repositoryGo here to fork the repo for homework 06.
Using statistical learning and data from the 2008 American National Election Studies survey, evaluate whether or not Leslie Knope’s attitudes towards Joe Biden are part of a broader trend within the American public. Specifically, do women display higher feeling thermometer ratings for Joe Biden than men?1 biden.csv
contains a selection of variables from the larger survey that also allow you to test competing factors that may influence attitudes towards Joe Biden.
biden
- ranges from 0-100female
- 1 if individual is female, 0 if individual is malepid
- party identification
0
- Democrat1
- Independent2
- Republicanage
- age of respondent in yearseduc
- number of years of formal education completed
17
- 17+ years (aka first year of graduate school and up)We’ve looked a lot at the Titanic data set. Now I want you to make your own predictions about who lived and who died.
library(titanic)
. Use the titanic_train
data frame.Survived
as the response variable. You may use any combination of the predictors to estimate these models. Don’t just reuse the models from the notes.
Your assignment should be submitted as a set of R scripts, R Markdown documents, data files, figures, etc. Follow instructions on homework workflow. As part of the pull request, you’re encouraged to reflect on what was hard/easy, problems you solved, helpful tutorials you read, etc.
Check minus: Cannot get code to run or is poorly documented. No documentation in the README
file. Severe misinterpretations of the results. Overall a shoddy or incomplete assignment.
Check: Solid effort. Hits all the elements. No clear mistakes. Easy to follow (both the code and the output). Nothing spectacular, either bad or good.
Check plus: Interpretation is clear and in-depth. Accurately interprets the results, with appropriate caveats for what the technique can and cannot do. Code is reproducible. Writes a user-friendly README
file. Discusses the benefits and drawbacks of a specific method. Compares multiple models fitted to the same underlying dataset.
Feeling thermometers are a common metric in survey research used to gauge attitudes or feelings of warmth towards individuals and institutions. They range from 0-100, with 0 indicating extreme coldness and 100 indicating extreme warmth.↩
This work is licensed under the CC BY-NC 4.0 Creative Commons License.