Question
This is in R programming. Please provide code in Rstudio and screenshot of Rstudio too. Task: Load data set ToothGrowth from the package datasets. Check
This is in R programming. Please provide code in Rstudio and screenshot of Rstudio too.
Task:
Load data set "ToothGrowth" from the package "datasets".
Check the help file for the description.
df <- datasets::ToothGrowth
?datasets::ToothGrowth
We are interested in the relationship between tooth length and supplement type/dosage. The variable "dose" - does in milligrams per day - is a numerical variable, however it has a very limited variability.
print(unique(df$dose))
There are just three values for "dose" - that is, we can treat them as three groups.
1. Get statistical and graphical summaries for two groups of supplements (OJ and VC). Provide a discussion what supplement is better for tooth growth.
2. Get statistical and graphical summaries for groups of supplements and dosages. Provide a discussion what combinations of supplement and dosages are better for tooth growth.
# ---- your code and comments here ---- #
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