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.

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

What affected your experience?

Any additional feedback? (Optional)

Thank you for your feedback!

×