Devin,
You should find out when and how that option was altered from the default, lest
you find that virtually any modeling that you do on the Mac will be affected by
that change, fundamentally altering the interpretation of the model results.
Regards,
Marc
On Jan 15, 2014, at 7:17 AM,
Yes that's it!
My mac has:
options('contrasts')
$contrasts
[1] contr.sum contr.poly
whereas the PC has
$contrasts
unordered ordered
contr.treatment contr.poly
I've changed the mac with
I've noticed that I get different output when running a linear model on my Mac
versus on my PC. Same effect, but the Mac assumes the predictor as a 0 level
whereas the PC uses the first category (alphabetically).
So for example (using Bodo Winter's example from his online linear models
On Jan 14, 2014, at 2:23 PM, CASENHISER, DEVIN M de...@uthsc.edu wrote:
I've noticed that I get different output when running a linear model on my
Mac versus on my PC. Same effect, but the Mac assumes the predictor as a 0
level whereas the PC uses the first category (alphabetically).
So
I would suggest running the code:
options('contrasts')
on both machines to see if there is a difference. Having the default
contrasts set differently would be one explanation.
On Tue, Jan 14, 2014 at 2:28 PM, Marc Schwartz marc_schwa...@me.com wrote:
On Jan 14, 2014, at 2:23 PM, CASENHISER,
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
Behalf Of Marc Schwartz
Sent: Wednesday, 15 January 2014 07:29
To: CASENHISER, DEVIN M
Cc: r-help@r-project.org
Subject: Re: [R] Different output for lm Mac vs PC
On Jan 14, 2014, at 2:23 PM
Good catch Greg.
The Mac output observed can result from either:
options(contrasts = c(contr.helmert, contr.poly))
or
options(contrasts = c(contr.sum, contr.poly))
being run first, before calling the model code.
I checked the referenced tutorial and did not see any steps pertaining to
7 matches
Mail list logo