Must be submitted for Peer Commentary by 5:00 pm Wednesday, February 26.
Peer Commentary and Final Homework DUE at 5:00 pm Monday, March 03.
Create a new GitHub repo and git-referenced
Rstudio Project called
“AN588_Zombies_BUlogin”. Within that repo, create a new
.Rmd
file called
“BUlogin_OriginalHomeworkCode_03”. Modules
03-08 will each have concepts and example code that will help you
complete this assignment. Don’t forget to add your Peer
Group and instructor as collaborators, and to accept their
invitations to you. Making sure to push both the markdown and knitted
.html
files to your repository, do the following:
Load in the dataset “zombies.csv” from my GitHub repo. This data includes the first name, last name, and gender of the entire population of 1000 people who have survived the zombie apocalypse and are now ekeing out an existence somewhere on the East Coast, along with several other variables (height, weight, age, number of years of education, number of zombies they have killed, and college major; see here for info on important post-zombie apocalypse majors).
var()
and sd()
commands as these are
for samples.
sample()
function to sample ONE subset of 30
zombie survivors (without replacement) from this population and
calculate the mean and sample standard deviation for each variable. Also
estimate the standard error for each variable, and construct the 95%
confidence interval for each mean. Note that for the variables that are
not drawn from the normal distribution, you may need to base your
estimate of the CIs on slightly different code than for the normal…
.Rproj
and README
file):
Formatting Instructions: Please use the
readthedown
theme (from the {rmdformats} package) in your
Final Homework Code, with a Header 2
title for each
question you answer. These headers should be organized in a Table of
Contents. Add to the top of the document, under your title, your
favorite GIF, picture, or video related to zombies that you’re able to
find online.
NOTE: If you want your homework code to look nice (beyond being very well annotated and commented), and be easy to use by others, you can check out the relatively simple example R Markdown templates in the AN588_Week_3_caschmit repo.
Please also consider consulting the following helpful guidelines on how to write effective R Markdown documents (also available at the end of Module 03), which go well beyond the simple formatting of the templates.