r:regression_diagnostics
Differences
This shows you the differences between two versions of the page.
r:regression_diagnostics [2018/12/16 01:07] – created hkimscil | r:regression_diagnostics [2018/12/16 01:24] (current) – hkimscil | ||
---|---|---|---|
Line 5: | Line 5: | ||
library(car) | library(car) | ||
fit <- lm(mpg~disp+hp+wt+drat, | fit <- lm(mpg~disp+hp+wt+drat, | ||
+ | |||
+ | ====== Outliers ====== | ||
+ | < | ||
+ | outlierTest(fit) # Bonferonni p-value for most extreme obs | ||
+ | qqPlot(fit, main=" | ||
+ | leveragePlots(fit) # leverage plots | ||
+ | </ |
r/regression_diagnostics.1544890041.txt.gz · Last modified: 2018/12/16 01:07 by hkimscil