multicolinearity
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
multicolinearity [2018/12/26 02:45] – hkimscil | multicolinearity [2018/12/26 02:49] (current) – [regression test with factors] hkimscil | ||
---|---|---|---|
Line 280: | Line 280: | ||
</ | </ | ||
- | < | + | <code>> lm5 = lm(log(cps$wage) ~ . -age -race, data = cps) |
+ | > summary(lm5) | ||
+ | |||
+ | Call: | ||
+ | lm(formula = log(cps$wage) ~ . - age - race, data = cps) | ||
+ | |||
+ | Residuals: | ||
+ | | ||
+ | -2.34366 -0.28169 -0.00017 | ||
+ | |||
+ | Coefficients: | ||
+ | | ||
+ | (Intercept) | ||
+ | education | ||
+ | south | ||
+ | sex1 -0.213602 | ||
+ | experience | ||
+ | union1 | ||
+ | occupation2 -0.355381 | ||
+ | occupation3 -0.209820 | ||
+ | occupation4 -0.385680 | ||
+ | occupation5 -0.047694 | ||
+ | occupation6 -0.254277 | ||
+ | sector1 | ||
+ | sector2 | ||
+ | marr1 0.065464 | ||
+ | --- | ||
+ | Signif. codes: | ||
+ | |||
+ | Residual standard error: 0.4283 on 520 degrees of freedom | ||
+ | Multiple R-squared: | ||
+ | F-statistic: | ||
+ | |||
+ | > | ||
</ | </ | ||
+ | < | ||
+ | > summary(lm6) | ||
+ | |||
+ | Call: | ||
+ | lm(formula = log(cps$wage) ~ . - age - race - occupation - marr - | ||
+ | sector, data = cps) | ||
+ | |||
+ | Residuals: | ||
+ | | ||
+ | -2.13809 -0.28681 -0.00078 | ||
+ | |||
+ | Coefficients: | ||
+ | | ||
+ | (Intercept) | ||
+ | education | ||
+ | south | ||
+ | sex1 -0.231978 | ||
+ | experience | ||
+ | union1 | ||
+ | --- | ||
+ | Signif. codes: | ||
+ | |||
+ | Residual standard error: 0.4433 on 528 degrees of freedom | ||
+ | Multiple R-squared: | ||
+ | F-statistic: | ||
+ | > </ |
multicolinearity.1545759918.txt.gz · Last modified: 2018/12/26 02:45 by hkimscil