Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

QA: Why does rxLinMod produce different results than lm?


View products that this article applies to.

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.   

↑ Back to the top


Keywords: kb

↑ Back to the top

Article Info
Article ID : 3104256
Revision : 1
Created on : 1/7/2017
Published on : 10/29/2015
Exists online : False
Views : 58