Multiple Linear Regression in R Flashcards

Review of Linear Regression and Multiple Linear Regression and R results interpretation

1
Q

What does multiple variable aggression do?

A

It allows for multiple exposure/risk factors while controlling (adjusting) for confounding

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
  1. ) Write out linear regression equation
  2. ) Is caloric intake significantly associated with BMI?
  3. ) Interpret the slope
  4. ) Interpret R2
  5. ) Predict BMI for someone who consumes 2,500 calories/day
A
  1. ) Y(BMI) = 13.8863 + 2.6711(x)
  2. ) Yes. p< 0.05
  3. ) For every 1000 unit increase in calories ( or 1 unit increase in kcal), bmi increases by by 2.6711 kg/m2
  4. ) Caloric intake explains 66.85% of the variability in bmi
  5. ) BMI = 13.8863 + 2.6711(2.5kcal) = 20.57
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do you calculate the confidence interval of the slope? How do you interpret it?

A

95% CI = b + tcrit*SE, (df = n-2)
where
b = the slope from your R results (2.6711)
SE = standard error from your R results (0.1802)
tcrit is for n-2 degrees of freedom (df = 109-2 = 107 from R results)
(Could also use Zcrit = 1.960 because more than 30 observations)

Interpretation of the 95% CI:
The estimated slope is 2.67
We are 95% confident that the true slope is between 2.31 and 3.03

Remember: If the 95% confidence interval for the slope does not contain the null value (0), then the relationship is statistically significant at a=0.05

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Multiple Linear Regression Equation

A
Y = a + b1X1 + b2X2 + b3X3 . . . bnXn
where
Y = continuous outcome
a = the intercept
the rest = now multiple independent (predictor) variables, so many slopes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

In what cases is it appropriate to use (simple and multiple) linear regression?

A

Linear regression is mainly used when the outcome (dependent variable) is a continuous variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What kind of independent variables (predictors) can you have in linear regression?

A

continuous, dichotomous (yes/no), and ordinal/categorical (convert to many dummy variables)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
  1. ) Write out the estimated multiple regression equation
  2. ) Which predictors are significantly associated with BMI?
  3. ) Interpret each of the regression coefficients.
  4. ) Are age and activity confounding the association between caloric intake and BMI? (Unadjusted slope = 2.67)
A
  1. ) BMI = 15.47 + 2.00(kcalx1000) + 0.11(age) + -1.34(activity)
  2. ) All three (the starred ones)
  3. ) The regression coefficients are the slopes. So, for every 1 unit increase in kcal, BMI increases by 2.00kcal/m2 after adjusting for other predictors, for every year aged, BMI increases by .11 kg/m2 after adjusting for other predictors, for those that are physically active, BMI is lower on average by -1.34 kg/m2 than those that are not active after adjusting for all other predictors.
  4. ) Unadjusted slope = 2.67, adjusted slope = 2.00. You have to apply the 10% rule: (2.67-2.00)/(2.00) = 32.8%. Yes, the effect of caloric intake changes by more than 10% (32.8%) so it does appear that these variables jointly confound the effect.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a simple model in regression analysis? What are the results called?

A

Linear regression model with one X variable and the results are often called unadjusted or crude results.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a linear regression model with more than one X variable called? What are it’s results called?

A

Multivariable regression. Results sometimes referred to as adjusted results.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is multiple linear regression used for?

A

To evaluate predictors for a continuously distributed outcome variable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What three things does variable regression enable you to do?

A

Control for confounding: each of the coefficients for the independent variables is adjusted for confounding by all other variables in the model.

Make predictions: Predicted values from the model can be interpreted either as estimated means (for subjects with a particular profile) or as predictions for individuals.

Identify relative importance of the independent variables in the model outcome.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the steps to interpreting variable regression analysis?

A
  1. ) determine whether the overall p-value indicates that this particular set of predictors are significantly associated with the outcome.
  2. ) If so, one can evaluate the relative impact of the individual variables (which are adjusted for the other variables) based on slope, CI for the slope, and p-value for the slope.
  3. ) What is the multiple R-squared? How much variability does the model explain?
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the R-squared value?

A

R-squared is a statistical measure of how close the data are to the fitted regression line. It is also known as the coefficient of determination, or the coefficient of multiple determination for multiple regression. 0% indicates that the model explains none of the variability of the response data around its mean

How well did you know this?
1
Not at all
2
3
4
5
Perfectly