r:linear_regression
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| r:linear_regression [2018/12/07 08:16] – [Multiple Regression] hkimscil | r:linear_regression [2019/06/13 10:15] (current) – 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 200: | Line 201: | ||
| * What is R< | * What is R< | ||
| * How many cars are involved in this test? (cf. df = 90) | * How many cars are involved in this test? (cf. df = 90) | ||
| + | * df + # of variables involved (3) = 93 | ||
| + | * check ' | ||
| * 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 | ||
| + | </ | ||
| + | |||
| + | |||
| </ | </ | ||
| Line 207: | Line 240: | ||
| * $\hat{Y} = \widehat{\text{MPG.city}}$ | * $\hat{Y} = \widehat{\text{MPG.city}}$ | ||
| - | <WRAP box help>in the meantime, | + | <WRAP box info>in the meantime, |
| < | < | ||
| Cars93$EngineSize | Cars93$EngineSize | ||
| Line 231: | Line 264: | ||
| > | > | ||
| </ | </ | ||
| + | Beta coefficients are not equal to correlations among variables. | ||
| </ | </ | ||
r/linear_regression.1544138172.txt.gz · Last modified: by hkimscil
