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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!