Question
###I need help with the last questions, this is in R### #Let's look at another dataset, 'sleep' which has three columns. In the help-section of
###I need help with the last questions, this is in R###
#Let's look at another dataset, 'sleep' which has three columns. In the help-section of R-studio, type "sleep" to read more about this dataset. #We will compare variance and mean in the numeric increase in hours of sleep in two groups who were given different drugs: #First, subset the dataframe to get only those observations for which the value of the "group" variable is 1. #(if you don't remember how to do this review lab 1) extra_gr1 = sleep[group==1, ]
#Create a stripchart for hours of extra-sleep for patients in group 1:
#Do the same thing for group 2. Fix the x-scale to be the same for both groups (hint: use the xlim parameter). #Compute the IQR for both groups. Which group seems to have more variable data?
#Now, compare the means of 'extra-sleep' for group 1 and group 2. Which group has a bigger mean?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started