Background
Researchers are studying the impact of protein sources and protein levels in the diet on the weight of rats. They feed the rats with diets of beef, cereal and pork and use a low and high protein level for each diet type. The researchers can include 60 rats in the experiment. Prior to the experiment, the rats were divided in 10 homogeneous groups of 6 rats based on characteristics such as initial weight, appetite, etc.
Within each group a rat is randomly assigned to a diet. The rats are fed during a month and the weight gain in grams is recorded for each rat.
The researchers want to assess the effect of the type of diet and the protein level on the weight of the rats.
In this exercise we will perform the data exploration using all diets, but, to keep the data analysis simple we will only assess the beef and cereal diets.
Data exploration
- Boxplot of the weight gain against protein source, protein level with coloring according to block
diet %>%
ggplot(aes(x=protLevel, y=weightGain)) +
scale_fill_brewer(palette="RdGy") +
theme_bw() +
geom_boxplot(outlier.shape=NA) +
geom_jitter(aes(color=block)) +
ggtitle("Weight gain dependence on protein source") +
ylab("Weigth gain (g)") +
#stat_summary(fun = mean, geom="point", shape=5, size=3, color="black", fill="black") +
facet_wrap(.~protSource)
- Lineplot of the weight gain against protein source, protein level with coloring and grouping according to block
diet %>%
ggplot(aes(x=protSource:protLevel, y=weightGain)) +
scale_fill_brewer(palette="RdGy") +
theme_bw() +
geom_line(aes(group=block, color=block)) +
geom_point(aes(color=block))+
ggtitle("Weight gain dependence on protein source") +
ylab("Weigth gain (g)")
#stat_summary(fun = mean, geom="point", shape=5, size=3, color="black", fill="black")
An increase in the weight of the rats seems to depend on the protein source received in the diet.
The increase in the weight of the rats seems to depend on the level of protein received in the diet
There also seems to be an interaction effect between the protein level and the protein source on the gain in weight of the rats. For the beef and the pork diets the effect of high protein levels in the data seems to be much stronger than in the cereal diet.
There is also a strong effect of the block. Blocking implies a randomisation restriction, hence, we will have to include the block effect anyway.
Multivariate linear regression analysis
Assumptions
List assumptions:
- The observations are independent
- Linearity between the response and predictor variable
- The residuals of the model must be normally distributed
- Homoscedasticity of the data
The first assumption is met if we correct for block in the model because the rats were randomized to the treatment within block. The other three assumptions can be assessed by fitting the linear model and calling the plot()
function as follows.
lm1 <- lm(weightGain ~ block + protSource*protLevel, data=diet.bc)
plot(lm1)
All assumptions are met for this dataset.
Hypothesis testing
We here fit a linear model with a blocking factor for block
and main and interaction effects for protein source and protein level.
##
## Call:
## lm(formula = weightGain ~ block + protSource * protLevel, data = diet.bc)
##
## Residuals:
## Min 1Q Median 3Q Max
## -21.00 -6.25 -1.25 6.50 17.50
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 87.250 5.506 15.846 3.39e-15 ***
## block2 -11.750 6.830 -1.720 0.096797 .
## block3 -3.750 6.830 -0.549 0.587467
## block4 -19.000 6.830 -2.782 0.009735 **
## block5 -9.000 6.830 -1.318 0.198650
## block6 3.250 6.830 0.476 0.637999
## block7 -30.250 6.830 -4.429 0.000141 ***
## block8 -8.250 6.830 -1.208 0.237536
## block9 -16.750 6.830 -2.453 0.020933 *
## block10 2.000 6.830 0.293 0.771883
## protSourcec 1.100 4.319 0.255 0.800914
## protLevelh 20.000 4.319 4.630 8.23e-05 ***
## protSourcec:protLevelh -18.200 6.109 -2.979 0.006043 **
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 9.659 on 27 degrees of freedom
## Multiple R-squared: 0.7252, Adjusted R-squared: 0.6031
## F-statistic: 5.939 on 12 and 27 DF, p-value: 6.122e-05
Interpretation of the regression parameters
library(ExploreModelMatrix)
ExploreModelMatrix::VisualizeDesign(diet.bc, ~ block + protSource * protLevel)$plotlist
## $`block = 1`
##
## $`block = 10`
##
## $`block = 2`
##
## $`block = 3`
##
## $`block = 4`
##
## $`block = 5`
##
## $`block = 6`
##
## $`block = 7`
##
## $`block = 8`
##
## $`block = 9`
There are 3 levels for protein source, 2 levels for protein level and 10 levels for the blocking variable. We will have one reference level for each respective variable: beef, low, block 1. So we need 2, 1 and 9 dummy variables to introduce the factors protein source, protein level and block in the linear model, respectively.
Hence, we can write down the linear model as follows:
\(y_i=\beta_0+\beta_cx_{i,c} +\beta_hx_{i,h}+\beta_{ch}x_{i,c}x_{i,h}+\beta_{b2}x_{i,b2}+\ldots+\beta_{b10}x_{i,b10}+\epsilon_{i}\)
with: \(y_i\) the observed weight gain for rat i, \(x_{i,h}\) a dummy variable which is 1 if rat i receives a high protein diet and is 0 otherwise,
\(x_{i,c}\) a dummy variable which is 1 if rat i receives a cereal diet and is 0 otherwise,
\(x_{i,bk}\) is a dummy variable which is 1 if rat i belongs to block \(bk\) and is 0 otherwise, with \(k \in 2,\ldots, 10\), and \(\epsilon_i\) an error term which is normally distributed with mean 0 and variance \(\sigma^2\), i.e. \(\epsilon_i \sim N(0,\sigma^2)\).
Rats that are assigned to block \(k\) and receive a beef based low protein diet have a covariate pattern \(x_{i,h}=0\), \(x_{i,c}=0\), \(x_{i,bm}=0\) with \(m\neq k\) and \(x_{i,bk}=1\). Their mean weight gain is thus equal to \(\mu_{l,b,bk}=\beta_0+\beta_{bk}\)
Rats that are assigned to block \(k\) and receive a beef based high protein diet have a covariate pattern \(x_{i,h}=1\), \(x_{i,c}=0\), \(x_{i,bm}=0\) with \(m\neq k\) and \(x_{i,bk}=1\). Their mean weight gain is thus equal to \(\mu_{h,b,bk}=\beta_0+\beta_h+\beta_{bk}\)
Rats that are assigned to block \(k\) and receive a cereal based low protein diet have a covariate pattern \(x_{i,h}=0\), \(x_{i,c}=1\), \(x_{i,bm}=0\) with \(m\neq k\) and \(x_{i,bk}=1\). Their mean weight gain is thus equal to \(\mu_{h,c,bk}=\beta_0+\beta_c+\beta_{bk}\)
Rats that are assigned to block \(k\) and receive a cereal based heigh protein diet have a covariate pattern \(x_{i,h}=1\), \(x_{i,c}=1\) \(x_{i,bm}=0\) with \(m\neq k\) and \(x_{i,bk}=1\). Their mean weight gain is thus equal to \(\mu_{h,c,bk}=\beta_0+\beta_h+\beta_c+\beta_{ch}+\beta_{bk}\)
We can now relate this to the output of the lm
function:
The intercept \(\beta_0\) is thus the average weight gain in the low beef diet for rats in block 1.
The parameter \(\beta_c\): the average weight gain difference between cereal-low and beef-low diet is 1.1g.
The parameter \(\beta_h\): the average weight gain difference between beef-high and beef-Low diet is 20g.
The parameter \(\beta_{ch}\) is the difference in the average weight gain difference due to the high protein level as compared to the low protein level for cereal diets as compared to the weight gain difference that occurs due to the protein level in the reference class (here beef diet). Here this is negative, i.e. -18.2g, thus the weight gain for the cereal protein source increases on average less between high and low protein diets than in beef based diets.
Testing the overall (combined) effect of diet
Because there are multiple factors with different levels in the model, we can first assess the effect of the diet (protein Level, protein source and the interaction) by using anova. With this test we will assess the null hypothesis that the average weight gain in each treatment is equal: i.e. \(H_0: \mu_{b,l}=\mu_{b,h}=\mu_{c,h}=\mu_{c,l}\) versus the alternative hyptohesis \(H_1:\) that at least two treatment means are different.
lm0 <- lm(weightGain ~ block, data=diet.bc)
anova(lm0, lm1)
We can conclude that there is an very significant effect of the diet type (protein source and/or protein level and/or protein source-protein level interaction) on the weight gain of rats (p = 2e-04).
Assessing the interaction effect between protein source and protein level
library(car)
summary(lm1)
##
## Call:
## lm(formula = weightGain ~ block + protSource * protLevel, data = diet.bc)
##
## Residuals:
## Min 1Q Median 3Q Max
## -21.00 -6.25 -1.25 6.50 17.50
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 87.250 5.506 15.846 3.39e-15 ***
## block2 -11.750 6.830 -1.720 0.096797 .
## block3 -3.750 6.830 -0.549 0.587467
## block4 -19.000 6.830 -2.782 0.009735 **
## block5 -9.000 6.830 -1.318 0.198650
## block6 3.250 6.830 0.476 0.637999
## block7 -30.250 6.830 -4.429 0.000141 ***
## block8 -8.250 6.830 -1.208 0.237536
## block9 -16.750 6.830 -2.453 0.020933 *
## block10 2.000 6.830 0.293 0.771883
## protSourcec 1.100 4.319 0.255 0.800914
## protLevelh 20.000 4.319 4.630 8.23e-05 ***
## protSourcec:protLevelh -18.200 6.109 -2.979 0.006043 **
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 9.659 on 27 degrees of freedom
## Multiple R-squared: 0.7252, Adjusted R-squared: 0.6031
## F-statistic: 5.939 on 12 and 27 DF, p-value: 6.122e-05
There is a very significant interaction between the protein source and the protein level. This indicates that the average weight increase due to the protein level differs according to the protein source. Hence, we cannot assess the effect of the protein source and/or protein level independently because there effects of the protein source vary according to the protein level.
Assessing specific contrasts
Imagine that we are interested in assessing if there is an effect of
protein source in the low protein diets
- \(\mu_{c,l}-\mu_{b,l} = \beta_c\)
protein source in high protein diets
- \(\mu_{c,h}-\mu_{b,h}=\beta_c+\beta_{ch}\)
protein level for beef diets (\(\mu_{b,h}-\mu_{b,l}=\beta_h\)), and cereal diets (\(\mu_{c,h}-\mu_{c,l}=\beta_h+\beta_{ch}\))
if the effect of the protein level differs between
- beef and cereal \((\mu_{c,h}-\mu_{c,l}) - (\mu_{b,h}-\mu_{b,l})=\beta_{ch}\)
These effects of interest are so-called contrasts, i.e. linear combinations of the parameters.
We can define the contrasts and assess the significance of the contrasts with the code below. The contrasts are given as input in the form of symbolic descriptions to the linfct
argument of the glht
function.
library(multcomp)
set.seed(75468) # to get reproducible results (small effect if removed)
lm1MultComp <- glht(
model = lm1,
linfct = c("protSourcec = 0",
"protSourcec + protSourcec:protLevelh = 0",
"protLevelh = 0",
"protLevelh + protSourcec:protLevelh = 0",
"protSourcec:protLevelh = 0")
)
##
## Simultaneous Tests for General Linear Hypotheses
##
## Fit: lm(formula = weightGain ~ block + protSource * protLevel, data = diet.bc)
##
## Linear Hypotheses:
## Estimate Std. Error t value Pr(>|t|)
## protSourcec == 0 1.100 4.319 0.255 0.99235
## protSourcec + protSourcec:protLevelh == 0 -17.100 4.319 -3.959 0.00211
## protLevelh == 0 20.000 4.319 4.630 < 0.001
## protLevelh + protSourcec:protLevelh == 0 1.800 4.319 0.417 0.96838
## protSourcec:protLevelh == 0 -18.200 6.109 -2.979 0.02351
##
## protSourcec == 0
## protSourcec + protSourcec:protLevelh == 0 **
## protLevelh == 0 ***
## protLevelh + protSourcec:protLevelh == 0
## protSourcec:protLevelh == 0 *
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## (Adjusted p values reported -- single-step method)
##
## Simultaneous Confidence Intervals
##
## Fit: lm(formula = weightGain ~ block + protSource * protLevel, data = diet.bc)
##
## Quantile = 2.6386
## 95% family-wise confidence level
##
##
## Linear Hypotheses:
## Estimate lwr upr
## protSourcec == 0 1.1000 -10.2975 12.4975
## protSourcec + protSourcec:protLevelh == 0 -17.1000 -28.4975 -5.7025
## protLevelh == 0 20.0000 8.6025 31.3975
## protLevelh + protSourcec:protLevelh == 0 1.8000 -9.5975 13.1975
## protSourcec:protLevelh == 0 -18.2000 -34.3185 -2.0815
Note that the p-values and the confidence intervals are automatically corrected for multiple testing.
LS0tCnRpdGxlOiAiRXhlcmNpc2UgOC41OiBCbG9ja2luZyBvbiB0aGUgcmF0IGRpZXQgZGF0YXNldCAtIHNvbHV0aW9uIiAgIAphdXRob3I6ICJMaWV2ZW4gQ2xlbWVudCBhbmQgSmVyb2VuIEdpbGlzIgpkYXRlOiAic3RhdE9taWNzLCBHaGVudCBVbml2ZXJzaXR5IChodHRwczovL3N0YXRvbWljcy5naXRodWIuaW8pIiAgCm91dHB1dDoKICAgIGh0bWxfZG9jdW1lbnQ6CiAgICAgIGNvZGVfZG93bmxvYWQ6IHRydWUgICAgCiAgICAgIHRoZW1lOiBjb3NtbwogICAgICB0b2M6IHRydWUKICAgICAgdG9jX2Zsb2F0OiB0cnVlCiAgICAgIGhpZ2hsaWdodDogdGFuZ28KICAgICAgbnVtYmVyX3NlY3Rpb25zOiB0cnVlCi0tLQoKIyBCYWNrZ3JvdW5kIAoKUmVzZWFyY2hlcnMgYXJlIHN0dWR5aW5nIHRoZSBpbXBhY3Qgb2YgcHJvdGVpbiBzb3VyY2VzIGFuZCBwcm90ZWluIGxldmVscyBpbiAKdGhlIGRpZXQgb24gdGhlIHdlaWdodCBvZiByYXRzLiBUaGV5IGZlZWQgdGh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