Open ClassDataS22.R in our Google Drive folder !Class-csv-Rscripts and run the commands on your laptop
Open R_Introduction.rmd in our Google Drive folder !Class-Notes and run the R chunks. Notice that the output for RMarkdown files is very different from the output we get when we use R scripts. You can use the method you prefer for HW assignments.
Suggested In Class Exercises (Time to explore R on your own or with a partner.)
Construct appropriate graphs to visually summarize the information collected on the class data survey for the following variables:
Year
Height
Handedness
Age
HometownSize
PulseRate
TextMessages
Varsity
CatsDogs
MusicPreference
ExerciseMinutes
FootLength
Use appropriate graphical displays and descriptive statistics to make appropriate comparisons between cat and dog lovers for different variables in the data set we collected during the first class.
Use appropriate graphical displays and descriptive statistics to make appropriate comparisons between the class years for different variables in the data set we collected during the first class.
Is the shape of the distribution for guesses of the length of the black string the same as the distribution of guesses for the length of the white string?
The actual length of the white sting is 46". Is the overall distribution of guesses centered at this value?
The actual length of the black string is 48". Is the overall distribution of guesses centered at the appropriate value?
(Do this exercise "by hand," not with R.) Caution is necessary when constructing histograms
from frequency distributions given in magazines, newspapers, journal articles,
etc. The authors of "Self-Reports of Academic Performance," an article
which appeared in Soc. Methods and Research (1981), studied the difference
in GPA, reported - actual, for each of the students in a sample. Specify
the height of each bar in a correct histogram for the frequency distribution
below and sketch the histogram.