User Tools

Site Tools


r:linear_regression

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
r:linear_regression [2018/12/07 10:54] – [Multiple Regression] hkimscilr:linear_regression [2019/06/13 10:15] (current) hkimscil
Line 201: Line 201:
   * What is R<sup>2</sup>?   * What is R<sup>2</sup>?
   * 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 'str(Cars93)'
   * If I eliminate the R<sup>2</sup> from the above output, can you still identify what it is?   * If I eliminate the R<sup>2</sup> from the above output, can you still identify what it is?
 </WRAP> </WRAP>
Line 225: Line 227:
 > ssreg/sstotal > ssreg/sstotal
 [1] 0.54921 [1] 0.54921
-> > + 
 +# or 
 +> 1-(deviance(lm.model)/sstotal) 
 +[1] 0.54932
 </code> </code>
  
r/linear_regression.txt · Last modified: 2019/06/13 10:15 by hkimscil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki