Description of Data Set
There are 60 observations and 3 variables as displayed here:
## # A tibble: 30 × 3
## len supp dose
## <dbl> <fct> <fct>
## 1 4.2 VC 0.5
## 2 11.5 VC 0.5
## 3 7.3 VC 0.5
## 4 5.8 VC 0.5
## 5 6.4 VC 0.5
## 6 10 VC 0.5
## 7 11.2 VC 0.5
## 8 11.2 VC 0.5
## 9 5.2 VC 0.5
## 10 7 VC 0.5
## # ℹ 20 more rows
## # A tibble: 30 × 3
## len supp dose
## <dbl> <fct> <fct>
## 1 15.2 OJ 0.5
## 2 21.5 OJ 0.5
## 3 17.6 OJ 0.5
## 4 9.7 OJ 0.5
## 5 14.5 OJ 0.5
## 6 10 OJ 0.5
## 7 8.2 OJ 0.5
## 8 9.4 OJ 0.5
## 9 16.5 OJ 0.5
## 10 9.7 OJ 0.5
## # ℹ 20 more rows
- “len” refers to the length of the selected tooth in microns
- “supp” refers to the supplement type (either VC = ascorbic acid or
OJ = orange juice)
- “dose” refers to the dosage (in mg/day)
Research Questions
- Does the source of Vitamin C have an effect on tooth growth in
guinea pigs?
- Does the dosage for each source of Vitamin C affect tooth growth in
guinea pigs?
Effect of Vitamin C by Source and Dosage Separately
## # A tibble: 2 × 2
## supp mean_length
## <fct> <dbl>
## 1 OJ 20.7
## 2 VC 17.0
By just looking at the mean of tooth length for each source, it
appears that using orange juice as a supplement was beneficial for
increasing tooth length in guinea pigs. However, what is the
distribution of the data? Are there outliers? Does the dosage of each
source contribute to the success of the supplement?
## # A tibble: 3 × 2
## dose mean_length
## <fct> <dbl>
## 1 0.5 10.6
## 2 1 19.7
## 3 2 26.1
By looking at the mean of tooth length for each dose, we see that the
larger the dose, the greater the mean tooth length. However, does the
ideal dosage depend on the specific source?
Boxplots Of Dosage vs. Tooth Lengths Based on Supplement

Orange Juice:
- Has at outlier for 2 mg/day that could raise the mean tooth
length
- Greater range for the smallest and middle dosage
- Has a consistently higher median for each dosage than ascorbic
acid
Ascorbic Acid:
- Has an outlier for 1 mg/day that could potentially skew its mean
tooth length
- Has a greater range of values for the highest dosage
- Has a consistently lower median for each dosage than ascorbic
acid
Scatterplot of Dosage vs. Tooth Length Based on Supplement

##
## Call:
## lm(formula = dose ~ len, data = OJ)
##
## Residuals:
## Min 1Q Median 3Q Max
## -1.08483 -0.42831 0.08943 0.39553 0.82391
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) -0.09512 0.30426 -0.313 0.757
## len 0.10139 0.01405 7.218 7.41e-08 ***
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 0.4997 on 28 degrees of freedom
## Multiple R-squared: 0.6504, Adjusted R-squared: 0.638
## F-statistic: 52.1 on 1 and 28 DF, p-value: 7.409e-08
##
## Call:
## lm(formula = dose ~ len, data = VC)
##
## Residuals:
## Min 1Q Median 3Q Max
## -0.55222 -0.16349 0.03278 0.16770 0.85917
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 0.445341 0.146306 3.044 0.00504 **
## len 0.091648 0.007778 11.783 2.29e-12 ***
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 0.3462 on 28 degrees of freedom
## Multiple R-squared: 0.8322, Adjusted R-squared: 0.8262
## F-statistic: 138.8 on 1 and 28 DF, p-value: 2.29e-12
Orange Juice:
- Greater range of values for lower and middle dosage
- Tooth length increases with dosage
- R-squared value: .638 (positively correlated)
- Minima and maxima of tooth lengths overlap between dosages
Ascorbic Acid:
- Greater range of values for the highest dosage
- Tooth length increases with dosage
- R-squared value: .8262 (positively correlated)
- More dependent on dosage than orange juice
Main Takeaways
- Orange juice can be used as a main supplement for tooth growth in
guinea pigs if a dose of 2 mg is given daily. Based on this analysis,
orange juice is the “better” supplement.
- Ascorbic acid can also be used as a supplement but the overall
effect will be more variable than if orange juice was used. 2 mg/day is
also the best dosage for the highest tooth length in guinea pigs. The
reliance on dosage make sense because ascorbic acid is pure vitamin C
and does not contain other ingredients like orange juice does.
- It would be beneficial to see how the tooth growth of guinea pigs on
supplements compares to a control group.