library(dplyr)
library(ggplot2)
library(oilabs)
After reading in the data appropriately
t.test(Time ~ Type, data=games1)
Assign the linear model (lm) to a new variable and the use the command summary
on the new variable to look at coefficients and significance.
games1 <- games1 %>%
mutate(Type2 = ifelse(Type=="Color", 1, 0))
lm(Time ~Type2, data=games1)
The command confint
on the linear model will find confidence itervals for the coefficients.
E1
E2
E3
E4
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.