Differences between rxLinMod and lm results are typically due to rxLinMod's regression using different contrasts from what lm uses. From the rxLinMod help: "On the other hand, rxLinMod by default uses a set of contrasts that drop the last level of each factor. Setting dropFirst=TRUE will give results more akin to those of lm."
rxLinMod was designed to produce results matching SAS's results by default. If the default rxLinMod results still do not match the SAS results or there are no factor variables, check whether the rxLinMod call uses fweights or pweights. rxLinMod() allows both "pweights" and "fweights" and the former corresponds to the weights used by SAS and R. "fweights" are extremely useful for some types of computations, though most other programs do not support them. Changing "fweights" to "pweights" in the call to rxLinMod should get the same results as R and SAS.Different results from rxLinMod(), lm(), and SAS
Applies To
Revolution AnalyticsNeed more help?
Want more options?
Explore subscription benefits, browse training courses, learn how to secure your device, and more.
Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.