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 revisionPrevious revision
Next revisionBoth sides next revision
multiple_regression_examples [2019/11/01 13:20] – [Backward elimination] hkimscilmultiple_regression_examples [2019/11/01 13:22] – [Backward elimination] hkimscil
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: 2023/10/21 13:26 by hkimscil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki