Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
103 lines (69 sloc) 2.25 KB
\usepackage{graphicx, verbatim}
\lhead{\textsc{NAME: \ \ \ \ \ \ \ \ \ }}
\chead{\textsc{(Horton) STAT 135: \texttt{R} Quiz}}
\rhead{\textsc{Fall 2014}}
opts_chunk$set(fig.width=5, fig.height=2.5)
No interaction with anyone but the instructor is allowed.
Load the \texttt{mosaic} and \texttt{mosaicData} packages.
\item Display the first few rows of the \texttt{KidsFeet} data frame (available
in the \texttt{mosaicData} package.)
\item Display the names of the variables from the data frame.
\item Calculate (not count by hand!) the number of cases in the data frame.
For your reference, here is a sample of the data:
\item Calculate the mean foot length of all kids.
\item Calculate the standard deviation of foot length for all kids.
\item Calculate the mean foot width stratified by sex.
\item Create a new variable, called \texttt{aspectRatio}, in the \texttt{KidsFeet} data frame that is defined as the ratio of the length to the width of each kid's foot.
\item Make a box-and-whisker plot of the kids' foot lengths, broken down by sex.
\item Make this plot:
histogram(~ length | sex, data=KidsFeet)
\item Calculate (not count by hand!) the number of kids by sex.
\item Calculate (not count by hand!) the number of kids by sex and dominant hand simultaneously.