SAS: estimate statement in Proc GLM [Software]
Dear BRN;
That depends (as always in life
).
If you evaluate all data at once it reads (lex order R, R1, R2, T):
If you evaluate according to the EMA crippled analysis you have to use only the data for the comparison under consideration, i.e. you have only T|R or T|R1 at hand. Then the estimate statement reads:
and in an other Proc GLM call
Hope that helps.
BTW: Sometimes RTFM helps also
.
❝ How should we write the sas code for the estimate to compare
❝ - T vs. R
❝ - T vs. R1
❝
❝ in a 4 sequence study (R1TR2R R2RR1T RR1TR2 TR2RR1)?
That depends (as always in life

If you evaluate all data at once it reads (lex order R, R1, R2, T):
estimate 'T vs. R' tmt -1 0 0 1;
estimate 'T vs. R1' tmt 0 -1 0 1;
If you evaluate according to the EMA crippled analysis you have to use only the data for the comparison under consideration, i.e. you have only T|R or T|R1 at hand. Then the estimate statement reads:
estimate 'T vs. R' tmt -1 1;
and in an other Proc GLM call
estimate 'T vs. R1' tmt -1 1;
Hope that helps.
BTW: Sometimes RTFM helps also

—
Regards,
Detlew
Regards,
Detlew
Complete thread:
- SAS: Dropping a treatment from a 3-way study jag009 2013-08-01 21:08
- Delete instead of missing? Helmut 2013-08-01 22:17
- SAS: Dropping a treatment from a 3-way study d_labes 2013-08-02 09:06
- SAS: Dropping a treatment from a 3-way study Helmut 2013-08-02 17:23
- SAS: Dropping a treatment from a 3-way study jag009 2013-08-02 17:38
- SAS: Dropping a treatment from a 3-way study BRN 2015-07-15 17:00
- SAS: estimate statement in Proc GLMd_labes 2015-07-17 08:37