multiple_regression_examples
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
multiple_regression_examples [2019/11/01 13:17] – [Backward elimination] hkimscil | multiple_regression_examples [2019/11/01 13:17] – [Backward elimination] hkimscil | ||
---|---|---|---|
Line 1231: | Line 1231: | ||
<WRAP half column> | <WRAP half column> | ||
+ | lm.fit.01 <- lm(formula = Sales ~ | ||
+ | | ||
+ | | ||
+ | | ||
+ | data = Carseats) | ||
+ | summary(lm.fit.01) | ||
+ | > lm.fit.01 <- lm(formula = Sales ~ CompPrice + | ||
+ | | ||
+ | | ||
+ | > summary(lm.fit.01) | ||
+ | Call: | ||
+ | lm(formula = Sales ~ CompPrice + Income + Advertising + Price + | ||
+ | ShelveLoc + Age, data = Carseats) | ||
+ | |||
+ | Residuals: | ||
+ | Min 1Q Median | ||
+ | -2.7728 -0.6954 | ||
+ | |||
+ | Coefficients: | ||
+ | | ||
+ | (Intercept) | ||
+ | CompPrice | ||
+ | Income | ||
+ | Advertising | ||
+ | Price | ||
+ | ShelveLocGood | ||
+ | ShelveLocMedium | ||
+ | Age | ||
+ | --- | ||
+ | Signif. codes: | ||
+ | |||
+ | Residual standard error: 1.019 on 392 degrees of freedom | ||
+ | Multiple R-squared: | ||
+ | F-statistic: | ||
</ | </ | ||
</ | </ |
multiple_regression_examples.txt · Last modified: 2023/10/21 13:26 by hkimscil