Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Part B Two way ANOVA Dental Health The data set ToothGrowth has measurements of tooth growth ( len ) of guinea pigs for different dosages
Part B Two way ANOVA Dental Health
The data set ToothGrowth has measurements of tooth growth len of guinea pigs for different dosages of Vitamin C dose and two different delivery methods supp
To load the data set, ToothGrowth.txt change to the proper directory, and then execute the following command in R:
Tooth read.tableToothGrowthtxtheaderT
attachTooth
Tooth contains three vectors: len, supp, and dose, as described in this table:
Column Descriptions of each column Name of each column in R
Tooth length len
Delivery method orange juice or ascorbic acid supp
Dosage level or in milligrams dose
Use the following commands to test whether dose and supp are treated as categorical variables. If the command responds FALSE use the factor command to make them categorical:
isfactorsupp
isfactordose
Create a linear model for Tooth growth len in terms of the delivery method supp and fill in your answers below.
State the null hypothesis:
H: The delivery method does not affect tooth growth in guinea pigs
Paste a copy of the anova output for this model here:
Paste a copy of the summary output for this model here:
Create a linear model for Tooth growth len in terms of the dosage level dose
State the null hypothesis:
H: The dose of vitamin C does not affect tooth growth in guinea pigs
Paste a copy of the anova output for this model here:
Paste a copy of the summary output for this model here:
Now create a linear model for Tooth growth len in terms of both the delivery method supp and the dosage level dose using the lm command:
modellmlen~suppdose
State the overall null hypothesis:
H:
Paste a copy of the anova output for this model here:
Paste a copy of the summary output for this model here:
Use your outputs above to fill in the pvalues and R values in the table below. Recall that the overall pvalue can be found in the last line of the output from the summary command.
Model pvalue R value
len~supp
len~dose
len~suppdose
Compare the pvalues and R values in the table above to determine which model best explains the variability in len. Report that model, here.
Model that best explains the variability in len:
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