QA: Why does rxLinMod produce different results than lm?

All RevoScaleR functions use SAS contrasts by default, instead of the default R treatment contrasts. 
To get the same results from both functions you have two options: 

i) Before running your code, set the following global options: options(contrasts=c(factor="contr.SAS",ordered="contr.poly")) 

ii) In your call to lm() or glm, add the option 'contrasts=list(Species=contr.SAS)'. Include all factor variables in this statement.   
Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

ID článku: 3104256 - Poslední kontrola: 10/29/2015 07:55:00 - Revize: 1.0

Revolution Analytics

  • KB3104256
Váš názor