User Tools

Site Tools


multiple_regression_examples

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
multiple_regression_examples [2019/11/01 12:50]
hkimscil [Backward elimination]
multiple_regression_examples [2019/11/01 12:52] (current)
hkimscil [Backward elimination]
Line 1190: Line 1190:
 <WRAP group> <WRAP group>
 <WRAP half column> <WRAP half column>
-<​code>​lm.fit.be <- lm(Sales ~ CompPrice +  +<​code>​lm.fit.be <- lm(Sales ~  
-            Income + Advertising + Price + +            ​CompPrice + Income +  
 +            ​Advertising + Price + 
             ShelveLoc + Age, data = Carseats)             ShelveLoc + Age, data = Carseats)
 +            ​
 summary(lm.fit.be) summary(lm.fit.be)
 </​code>​ </​code>​
  
 <​code>​ <​code>​
-> lm.fit.be <- lm(Sales ~ CompPrice + Income + Advertising + Price + ShelveLoc + Age, data = Carseats)+> lm.fit.be <- lm(Sales ~ CompPrice +  
 +        ​Income + Advertising +  
 +        ​Price + ShelveLoc +  
 +        ​Age, data = Carseats)
 > summary(lm.fit.be) > summary(lm.fit.be)
  
multiple_regression_examples.txt · Last modified: 2019/11/01 12:52 by hkimscil