SAS code for 2-stage design [Two-Stage / GS Designs]
Dear MGR,
Welcome to the club
.
Do not have this software, but I think Helmut has posted here about this.
You may find some material in his lectures also, some decided to the 2-stage evaluation.
AFAIK there is no decided article/guideline containing SAS code in this respect. But it should not that hard to code it:
For stage 1 use the code for classical ABE for a 2x2 cross-over, but instead of calculating 90% CIs derive the CIs to the confidence level (1-2*0.0294) = 94.12%.
The power inspection step and the sample size estimation are a little bit hairy in SAS. Don't really know if
(if you ever have seen or heard about): R-package PowerTOST.
For stage 2 evaluation (if a second stage becomes necessary) use a model with the effects:
Here my SAS code for that:
That is it. Not so difficult, isn't it?
Hope this helps.
BTW: There is a new revision of the EMA Q&A quite recently (09-May-2014) out there:
EMA/618604/2008 Rev. 9
❝ We are going for a 2stage approach for EMA using Potvin B method.
Welcome to the club

❝ Is this type of analysis can be done by WinNonlin 5.2 or 6.3?
Do not have this software, but I think Helmut has posted here about this.
You may find some material in his lectures also, some decided to the 2-stage evaluation.
❝ Moreover is there any articles/guidelines for the SAS code?
AFAIK there is no decided article/guideline containing SAS code in this respect. But it should not that hard to code it:
For stage 1 use the code for classical ABE for a 2x2 cross-over, but instead of calculating 90% CIs derive the CIs to the confidence level (1-2*0.0294) = 94.12%.
The power inspection step and the sample size estimation are a little bit hairy in SAS. Don't really know if
Proc Power
can be used for that. I suggest to use some tool external to SAS. You may guess what I recommend 
For stage 2 evaluation (if a second stage becomes necessary) use a model with the effects:
- treatment
- stage
- period within stage
- sequence
- stage*sequence interaction (according to EMA Q&A)
- subject nested within sequence and stage
Here my SAS code for that:
Proc GLM data=yourdata;
class treatment period stage sequence subject;
model &lnval = treatment stage period(stage) sequence
stage*sequence /*acc. to EMA Q&A*/
subject(sequence*stage) / CLparm alpha=0.0588 ss3;
ODS output estimates=_est2;
estimate 'T-R' treatment -1 1;
where stage in(1 2);
run; quit;
That is it. Not so difficult, isn't it?
Hope this helps.
BTW: There is a new revision of the EMA Q&A quite recently (09-May-2014) out there:
EMA/618604/2008 Rev. 9
—
Regards,
Detlew
Regards,
Detlew
Complete thread:
- SAS code for 2-stage design MGR 2014-05-22 07:45
- SAS code for 2-stage designd_labes 2014-05-22 08:17
- Phoenix/WinNonlin code Helmut 2014-05-22 12:24
- maybe R too? yjlee168 2014-05-23 21:17
- RSABE/ABEL in a TSD: Science fiction Helmut 2014-05-23 22:39
- WinNonlin 5.2.1 setup MGR 2014-07-02 07:08
- outdated software; mixed vs. fixed effects Helmut 2014-07-02 10:40
- outdated software; mixed vs. fixed effects MGR 2014-07-03 06:32
- outdated software; mixed vs. fixed effects Helmut 2014-07-02 10:40
- maybe R too? yjlee168 2014-05-23 21:17