Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In the R package faraway there is a data set called rats. use that data. Use rats data in the package faraway in R. Description:
In the R package faraway there is a data set called rats. use that data. Use rats data in the package faraway in R. Description: An experiment was conducted as part of an investigation to combat the effects of certain toxic agents. Format: A data frame with 48 observations on the following 3 variables: - time: survival time in tens of hours - poison: the poison type - a factor with levels I II III, randomly assigned to subjects. - treat: the treatment - a factor with levels A B C D, randomly assigned to subjects. 1) Focus on time as the response and treat as the predictor. Plot time as a function of treat using a jittered scatter plot. Add a mean of time for each level of treat to the plot. What pattern do you see? Describe this in layman's terms. 2) Perform a one-way ANOVA with time as the response and treat as the predictor. Use aov() as well as lm(). From each, describe your observation about what can be concluded. 3) Perform pairwise comparison using Tukey's difference test. Which pairs of treat are different? How does this result compare to the result from 2)? 4) Examine time as the response and treat and poison as the predictors through a jittered scatter plot as done in 1) with an addition of lines that show the mean of time at the interaction of poison and treat. Does the pattern seen in 1) hold across all poison types? 5) Model time on treat, poison and their interaction in a linear regression. What do the coefficient estimates of interactions indicate? How does this correspond to your observation in 4)
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