[R] estimate statement?
Thomas Lumley
tlumley at u.washington.edu
Thu Nov 7 15:57:01 CET 2002
On Wed, 6 Nov 2002, Grathwohl,Dominik,LAUSANNE,NRC/NT wrote:
> Dear all,
>
> I have a question about linear models.
> Is there something comparable to the estimate statement in SAS?
>
> E.g.
> proc mixed data=test;
> class x1 x2;
> model y=x1|x2 /s;
> estimate 'x1' x1 -1 1 x1*x2 -0.5 -0.5 0.5 0.5;
> estimate 'x2' x2 -1 1 x1*x2 -0.5 0.5 -0.5 0.5;
> run;
>
There are various things. The C() function and the contrasts option to lm
allow a set of contrasts to be specified for each variable.
The contrast() function in the gregmisc package allows you to estimate
different contrasts from a fitted model.
-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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list