Read FPP, chapter 4, and do the assigned exercises.
Read my notes
on measures of location and scale. They review some of the material from
FPP, but also cover other single-number summaries and computation.
Update: Be sure to notice the group_by()
and summarize()
functions in the notes and please reproduce
the examples in the notes. These are critical for the
computational homework below. You might find these two lecture videos
helpful: (1) a
video describing how group_by()
and
summarize()
work and (2). a
video with a live coding example of group_by()
and
summarize()
.
Read FPP, chapter 5, and do the assigned exercises.
Read and review my notes on the normal curve, which has a few more mathematical and computational details. Do the review exercise at the end that asks about the extremity of Congressional leadership. Here’s a PDF version that might be more readable.
Make sure to turn in three things:
Starting this week, I’m giving you a lot of flexibility on the computational assignments. Your task this week: learn something interesting from your data using the conceptual and computational tools we learned in class (i.e., measures of location and scale).
group_by()
and
summarize()
and misc. geoms such as
geom_line()
.You will do a simple data analysis and write a short paper summarizing your results. Feel free to use additional tools in your toolbox, such as histograms and data wrangling, or learn new tools as needed, but you must feature some of the tools we learned this week.
IMPORTANT: As you work through the steps below, feel free to copy files over from previous weeks’ assignments.
hw04
and initialize git.hw04-first-last
, and publish the initial files up to GitHub
as a part of the pos5737 organization.data/
, doc/
, and R/
,
subdirectories of hw04
.data/
.tidyr::pivot_wider()
. a I like to save tables as a separate
.tex
file and \input{}
it into the LaTeX
manuscript (you probably need \usepackage{float}
and
\usepackage{booktabs}
at the top of your .tex
manuscript). The tables
repo contains an example R script that makes a table and a LaTeX
document that \input{}
s the table. (There are tutorials for
Word,
if you prefer that.).tex
or .docx
source file. You should
organize your work following the standard political science format, but
please cover the following at some point.
.tex
manuscript from a previous
project and start replacing the text. You should do something similar. I
made two templates for beginners (simple
.tex
and .Rmd
examples and and example with a
Makefile
). You should make sure you can get these
example .tex
files to compile and then slowly make changes.
If you run into trouble, please ask for help.When you are done, please make sure that you have completed all the steps above. Then submit your link to Canvas.