Subject: subject number (ignored by us)Metabol: first-pass metabolism of alcohol in stomach (millimoles per litre-hour), responseGastric: gastric alcohol dehydrogenase activity in stomach (micromoles per minute per gram of tissue)Sex: whether subject was Female or Male (categorical)Alcohol: whether subject was an alcoholic or not (assessed by how much alcohol they drank and how frequently). Values Alcoholic, Non-alcoholic (categorical).shape as well as colour to distinguish observations.GastricAlcohol.
Call:
lm(formula = Metabol ~ Gastric + Sex + Alcohol, data = alc)
Residuals:
Min 1Q Median 3Q Max
-2.3119 -0.6339 -0.0927 0.6070 4.5629
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) -2.0159 0.6348 -3.175 0.00362 **
Gastric 1.9466 0.2884 6.749 2.5e-07 ***
SexMale 1.6535 0.5514 2.999 0.00564 **
AlcoholNon-alcoholic 0.1183 0.6008 0.197 0.84527
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Residual standard error: 1.354 on 28 degrees of freedom
Multiple R-squared: 0.7657, Adjusted R-squared: 0.7406
F-statistic: 30.51 on 3 and 28 DF, p-value: 5.748e-09
Alcohol (suggests removing)Gastric and SexThere is one intercept, and each explanatory variable has a slope that expresses effect of that variable, all else equal.
Slope for Gastric (quantitative) says that if Gastric increases by 1, and everything else same, Metabol predicted to increase by 1.95.
Each categorical variable has a “baseline” category, the first one alphabetically: Female, Alcoholic.
For categorical explanatory variables, the slope says how Metabol compares for the named category vs. the baseline:
Metabol is 1.65 higher than for females, all else equalMetabol is 0.12 higher than for alcoholics, all else equalIntercept is the predicted value of Metabol when all the quantitative variables are 0 and all the categorical variables are at baseline (not usually very interesting).
Rows: 32
Columns: 11
$ Subject <dbl> 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,…
$ Metabol <dbl> 0.6, 0.6, 1.5, 0.4, 0.1, 0.2, 0.3,…
$ Gastric <dbl> 1.0, 1.6, 1.5, 2.2, 1.1, 1.2, 0.9,…
$ Sex <chr> "Female", "Female", "Female", "Fem…
$ Alcohol <chr> "Alcoholic", "Alcoholic", "Alcohol…
$ .fitted <dbl> -0.06926514, 1.09870918, 0.9040467…
$ .resid <dbl> 0.66926514, -0.49870918, 0.5959532…
$ .hat <dbl> 0.17712194, 0.19504634, 0.18979002…
$ .sigma <dbl> 1.371461, 1.374635, 1.372891, 1.32…
$ .cooksd <dbl> 1.597846e-02, 1.021005e-02, 1.4003…
$ .std.resid <dbl> 0.544915310, -0.410544719, 0.48900…
GastricSexAlcoholGastric: suggestion of curve?Sex: males more spread outAlcohol: non-alcoholics more spread outfrom here (link):
MASS as boxcoxMASS also has a select that we don’t want to have interfere with the tidyverse select, so load MASS as shown:boxcox with a model formula (such as you would use in lm):Metabol as response:
Call:
lm(formula = sqrt(Metabol) ~ Gastric + Sex + Alcohol, data = alc)
Residuals:
Min 1Q Median 3Q Max
-0.74769 -0.26586 0.01346 0.25088 0.75600
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 0.22929 0.17494 1.311 0.200607
Gastric 0.50406 0.07948 6.342 7.33e-07 ***
SexMale 0.55856 0.15195 3.676 0.000995 ***
AlcoholNon-alcoholic -0.04690 0.16556 -0.283 0.779042
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Residual standard error: 0.3731 on 28 degrees of freedom
Multiple R-squared: 0.768, Adjusted R-squared: 0.7431
F-statistic: 30.89 on 3 and 28 DF, p-value: 5.03e-09
Alcohol:
Call:
lm(formula = sqrt(Metabol) ~ Gastric + Sex, data = alc)
Residuals:
Min 1Q Median 3Q Max
-0.77319 -0.23494 0.02865 0.26615 0.74255
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 0.20185 0.14334 1.408 0.169709
Gastric 0.49655 0.07373 6.735 2.17e-07 ***
SexMale 0.57286 0.14103 4.062 0.000338 ***
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Residual standard error: 0.3671 on 29 degrees of freedom
Multiple R-squared: 0.7673, Adjusted R-squared: 0.7513
F-statistic: 47.81 on 2 and 29 DF, p-value: 6.584e-10
Alcohol was not significant in the regression, so removed it. If you have more than one non-significant explanatory variable, remove only the one least significant one (highest P-value), refit, re-evaluate.SexSex have no outliers and look equally spreadGastric is significantly positive: as gastric activity increases, metabolism increases (for everybody)SexMale positive: compared to baseline Sex (Female), metabolism is higher for Males even allowing for the effect of Gastric.Alcohol: being alcoholic does not affect metabolism over and above the other explanatory variables.from Ramsey and Schafer, “The Statistical Sleuth”, 3rd edition, case 11.1.1, page 311:
Women exhibit a lower tolerance for alcohol and develop alcohol-related liver disease more readily than men. When men and women of the same size and drinking history consume equal amounts of alcohol, the women on average carry a higher concentration of alcohol in their bloodstream. According to a team of Italian researchers, this occurs because alcohol-degrading enzymes in the stomach (where alcohol is partially metabolized before it enters the bloodstream and is eventually metabolized by the liver) are more active in men than in women. The researchers studied the extent to which the activity of the enzyme explained the first-pass alcohol metabolism and the extent to which it explained the differences in first-pass metabolism between women and men.
Comments
Metabol