Linear Regression 1 Flashcards
1
Q
Plots
A
- Tukey Anscombe Plot -> linear
- QQ-Plot -> NV
- Scale-Location-Plot -> Homoscedasticity
- Histograms/scatterplots/leverage plot -> find outliers
In R:
Plot()
Autoplot()
2
Q
What to do if assumptions not given
A
- transformation (log, sqrt)
- take care of outliers
(Check correctness, transform, chance, interest, only delete with care and mention in report) - improve model (add interaction)
- use other model family
3
Q
CI
A
In R:
Confint(lm, level = c(0.95))
Beta1 -/+ c(1.96)*sd
4
Q
Which other regression lines are compatible with observed data?
A
Confidence band
5
Q
Where do future observations with given x lie?
A
Prediction band (breiter als confidence band)
6
Q
Make dataset with only few picked variables
A
Select()
7
Q
Make new data
A
Expand_grid
Predict
Cbind
8
Q
Get new values of response (y)
A
Predict()