You must be able to access R and R Studio. Either through the server (https://rstudio.campus.pomona.edu) or on your own computer. See: http://research.pomona.edu/johardin/math58bs17/ for many resources.
require(dplyr)
require(ggplot2)
Click on the Knit icon at the top of R Studio to run the R code and create a Word document simultaneously.
ggplot2
package. Try googling “qplot bargraph” and look at images.)Infants <- read.delim("http://www.rossmanchance.com/iscam3/data/InfantData.txt")
load(url("http://www.rossmanchance.com/iscam3/ISCAM.RData"))
qplot(choice, data=Infants, geom="bar")
Infants %>%
group_by(choice) %>%
summarize(npergroup = n()) %>%
mutate(proppergroup = npergroup / sum(npergroup))
## # A tibble: 2 × 3
## choice npergroup proppergroup
## <fctr> <int> <dbl>
## 1 helper 14 0.875
## 2 hinderer 2 0.125
General notes on homework assignments (also see syllabus for policies and suggestions): - please be neat and organized, this will help me, the grader, and you (in the future) to follow your work.
be sure to include your name on the assignment, and staple the pages together prior to class
please include at least the number of the problem, or a summary of this question (this will also be helpful to you in the future to prepare for exams).
it is strongly recommended that you write out the questions as soon as you get the assignment. This will help you to start thinking how to solve them!
for R problems, it is required to use R Markdown
please do not print errors, messages, warnings, or anything else that makes your homework unwieldy. You will be graded down for superfluous printouts.
in case of questions, or if you get stuck please don’t hesitate to email me (though I’m much less sympathetic to such questions if I receive emails within 24 hours of the due date for the assignment).
Homework assignments will be graded out of 5 points, which are based on a combination of accuracy and effort. Below are rough guidelines for grading.
Score & Description
5 points: All problems completed with detailed solutions provided and 75% or more of the problems are fully correct.
4 points: All problems completed with detailed solutions and 50-75% correct; OR close to all problems completed and 75%-100% correct
3 points: Close to all problems completed with less than 75% correct
2 points: More than half but fewer than all problems completed and > 75% correct
1 point: More than half but fewer than all problems completed and < 75% correct; OR less than half of problems completed
0 points: No work submitted, OR half or less than half of the problems submitted and without any detail/work shown to explain the solutions.