Skip to content

Preferable contrasts?

2 messages · Grathwohl,Dominik,LAUSANNE,NRC/NT, Thomas Lumley

#
Dear experts,

I would like to thank the experts for the fast and fruitful advises 
concerning my posted problem. Some would like to know 
where contr.SAS comes from. It is part of the NLME library 
and it could be found in the SASmixed library. 
However, I think it's not crucial where it comes from 
to present my problem. My problem was more of general nature 
about the impact of contrasts to the p-value of parameter estimates 
than to this special case of contr.SAS. I'm aware that there is some 
impact but it was surprising for me that I could choose whether PRO 
is significant or PRE is significant depending on contrasts. 
Now I would like to summarize the answers.

Vito Muggio recommends using Likelihood Ratio Test instead.
[1] 0.1962388
[1] 0.1259392
PRO and PRE seems not to contribute in a significant way.
 
Brian Ripley advice that the interpretation of main effects in the presence
of interactions depends on the coding except for a few special cases
(least squares fitting, balance and true contrasts (e.g. not
contr.treatment nor contr.SAS) spring to mind).  One extreme
view is never to look at the coefficients, only at predictions, and
although a counsel of perfection it contains a lot of merit.
In addition, he refers to chapter 6 of MASS. 

John Fox writes that parameter estimates should interpret in 
conformity with the coding employed. 
When using 0/1 coding in a model with interactions, you 
shouldn't think of the coefficients for factor(PRO) and factor(PRE) as 
"main effects." 

Frank E. Harrell Jr. also recommend to predict values and 
pointed me to an example of his contrast.Design, part of the Design library.
PRE  Contrast      S.E.      Lower    Upper    Z Pr(>|z|)
   0 0.6576294 0.3020151 0.06569076 1.249568 2.18   0.0294
PRO  Contrast      S.E.      Lower     Upper    Z Pr(>|z|)
   0 0.0680866 0.3040376 -0.5278161 0.6639893 0.22   0.8228
Rising PRO by 1 seems to be a significant effect, PRE not.

In summary, all experts point me to use something, 
which is independent of a certain contrast matrix. 
Personally, I would like to prefer the prediction 
rather than the LR-test, because I have really to spell out 
what I want to see.

Thank you all,

Dominik
http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
_._
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Tue, 12 Nov 2002, Grathwohl,Dominik,LAUSANNE,NRC/NT wrote:
I don't want particularly to single out this question, but it illustrates
a general point that might be helpful to other people on the list.

The reason that we want to know the location of contr.SAS is to be able to
see what it does.  Except for very simple questions like "What this the
name of the help command?" most of us need to try an example to work out
the answer.

This is particularly important for bug reports -- a bug report that is
reproducible is usually easy to track down and fix, one that isn't
reproducible is almost always hard to fix.   There's a very nice article
about this at
  http://www.chiark.greenend.org.uk/~sgtatham/bugs.html


Sometimes it isn't possible for us to try an example related to your
question -- it might require your data or your computer or  your large and
complicated files or something -- but if we can, it sure helps.


	-thomas

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._