r:linear_regression
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
r:linear_regression [2018/12/07 08:18] – [Multiple Regression] hkimscil | r:linear_regression [2018/12/07 10:58] – [Multiple Regression] hkimscil | ||
---|---|---|---|
Line 162: | Line 162: | ||
====== Multiple Regression ====== | ====== Multiple Regression ====== | ||
+ | regression output table | ||
| anova(m) | | anova(m) | ||
| coefficients(m) = coef(m) | | coefficients(m) = coef(m) | ||
Line 201: | Line 202: | ||
* How many cars are involved in this test? (cf. df = 90) | * How many cars are involved in this test? (cf. df = 90) | ||
* If I eliminate the R< | * If I eliminate the R< | ||
+ | </ | ||
+ | <WRAP box info>The last question: | ||
+ | * If I eliminate the R< | ||
+ | * to answer the question, use the regression output table: | ||
+ | |||
+ | R< | ||
+ | = | ||
+ | |||
+ | < | ||
+ | Analysis of Variance Table | ||
+ | |||
+ | Response: Cars93$MPG.city | ||
+ | Df Sum Sq Mean Sq F value Pr(> | ||
+ | Cars93$EngineSize | ||
+ | Cars93$Price | ||
+ | Residuals | ||
+ | --- | ||
+ | Signif. codes: | ||
+ | |||
+ | > sstotal = 1465+131+1310 | ||
+ | > ssreg <- 1465+131 | ||
+ | > ssreg/ | ||
+ | [1] 0.54921 | ||
+ | > | ||
+ | > # or | ||
+ | > 1-(deviance(lm.model)/ | ||
+ | [1] 0.54932 | ||
+ | </ | ||
+ | |||
+ | |||
</ | </ | ||
r/linear_regression.txt · Last modified: 2019/06/13 10:15 by hkimscil