multiple_regression_examples
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
multiple_regression_examples [2019/11/01 13:17] – [Backward elimination] hkimscil | multiple_regression_examples [2019/11/01 13:22] – [Backward elimination] hkimscil | ||
---|---|---|---|
Line 1190: | Line 1190: | ||
<WRAP group> | <WRAP group> | ||
<WRAP half column> | <WRAP half column> | ||
- | < | + | < |
- | + | | |
- | cf. | + | |
- | < | + | |
- | lm.fit.01 <- lm(Sales ~ CompPrice + Income + Advertising + Price + ShelveLoc + Age, data = Carseats) | + | |
+ | summary(lm.fit.be) | ||
</ | </ | ||
< | < | ||
- | > lm.fit.be <- lm(Sales ~ CompPrice + Income + Advertising + Price + ShelveLoc + Age, data = Carseats) | + | > lm.fit.be <- lm(Sales ~ CompPrice + |
+ | | ||
+ | | ||
+ | | ||
> summary(lm.fit.be) | > summary(lm.fit.be) | ||
Line 1231: | Line 1235: | ||
<WRAP half column> | <WRAP half column> | ||
+ | < | ||
lm.fit.01 <- lm(formula = Sales ~ | lm.fit.01 <- lm(formula = Sales ~ | ||
| | ||
Line 1237: | Line 1242: | ||
data = Carseats) | data = Carseats) | ||
summary(lm.fit.01) | summary(lm.fit.01) | ||
+ | </ | ||
+ | |||
+ | < | ||
> lm.fit.01 <- lm(formula = Sales ~ CompPrice + | > lm.fit.01 <- lm(formula = Sales ~ CompPrice + | ||
| | ||
Line 1266: | Line 1274: | ||
Multiple R-squared: | Multiple R-squared: | ||
F-statistic: | F-statistic: | ||
+ | |||
+ | </ | ||
</ | </ | ||
</ | </ |
multiple_regression_examples.txt · Last modified: 2023/10/21 13:26 by hkimscil