jag009
★★★

NJ,
2012-09-06 19:23
(5032 d 16:51 ago)

(edited on 2012-09-06 20:17)
Posting: # 9156
Views: 8,426
 

 4-way crossover vs 2-way crossover [General Sta­tis­tics]

Hi all,

Can someone give me a short (really short?) lecture on analyzing 4-way crossover BA/BE study involving 3 test formulations and reference in SAS? I tried using GLM but failed to get the sequence effect and the 90% CI (Test vs Reference). The data I was trying is not balance, that is not all subjects have all 4 treatments data. Some has 2 or 3 treatments while others have completed all 4 treatments.

Thanks
John
d_labes
★★★

Berlin, Germany,
2012-09-07 14:05
(5031 d 22:09 ago)

@ jag009
Posting: # 9158
Views: 7,456
 

 Principle SAS code for more than 2 tmts

Hi John,

you talk about a crossover study with more than two treatments, right?
What SAS code did you use that failed? Any error messages?

Mine for the evaluation of crossover studies with more than 2 formulations is (all effects fixed model, Proc GLM):
* the ODS statement saves the differences of least square means;
ODS output LSMeanDiff=_ratios;
Proc GLM data=yourData;
  class tmt period sequence subject;
  * common model;
  model logPK = tmt period sequence subject(sequence)/ss3;
  * test the sequence effect with the right denominator
     may be also coded via a random statement;

  TEST H=sequence E=subject(sequence);
  * least square means + 90% CI of differences;
  LSMeans tmt /cl pdiff alpha=0.1;
run; quit;
* back transformation to the original domain.
  coding T1,T2,T3 and R assumed.
  interest in pairs Tx vs. R only;

data _ratios;
  set _ratios;
  * percent rounded to 2 decimals;
  * must change the sign due to lexical ordering;

  point=round(100*exp(-difference),0.01);
  lower=round(100*exp(-upperCL),0.01);
  upper=round(100*exp(-lowerCL),0.01);
  pair=compress(_tmt)||" vs. "||compress(tmt);
  where tmt='R';
run;
title "90% Confidence intervals";
Proc Print data=_ratios noobs;
  var pair point lower upper;
run;

Replace logPK with your variables containing the log-transformed PK metrics under evaluation.

If you have coded your treatments/formulations with T1, T2, T3 and R the LSMeans statement will give you the differences R-T1, R-T2 and R-T3 and the pairs Tx-Ty as well in lexical order. Therefore you have to change the sign and swap upper/lower limits to get R-Tx. If you are also interested in Tx-Ty modify the code to not change the sign for these pairs.

If you are not interested in sequence effect, drop it from the GLM code.
The 90% confidence intervals are the same.

Eventually you should consider an alpha-adjustment or Dunetts test. See
Hauschke, Steinijans, Pigeot
"Bioequivalence Studies in Drug Development"
Wiley, Chichester (2007)
Chapter 7 "Designs with more than two formulation", 7.4 "Multiplicity"

Hope this helps.

Regards,

Detlew
jag009
★★★

NJ,
2012-09-11 00:23
(5028 d 11:52 ago)

@ d_labes
Posting: # 9167
Views: 7,337
 

 Principle SAS code for more than 2 tmts

Hi d_labes,

Thanks for the code. My code is similar to yours except for the (T/R) 90% geometric confidence interval. Shouldn't the CI be computed based on the following formula?

lower and upper CI = 100*exp(difference ± t 0.05,&df × SE difference).

Thanks
John
d_labes
★★★

Berlin, Germany,
2012-09-11 10:34
(5028 d 01:41 ago)

@ jag009
Posting: # 9175
Views: 7,426
 

 Let GLM do the work

Hi John!

❝ ... Shouldn't the CI be computed based on the following formula?


❝ lower and upper CI = 100*exp(difference ± t 0.05,&df × SE difference).


This is done by Proc GLM for you (if you specify /CLPARM alpha=0.1 on the model statement). Without bothering to remember the correct formula for obtaining the confidence limits :cool:.

BTW: If your code was similar to mine, what was the problem?

Regards,

Detlew
jag009
★★★

NJ,
2012-09-11 18:46
(5027 d 17:29 ago)

@ d_labes
Posting: # 9178
Views: 7,250
 

 Let GLM do the work

Hi d_labes,

Something is wrong with my 90% CI routine. Unlike yours I wrote a long routine for the computation. It's a bit long and Helmut will probably shoot me for sending such a long code in a message.

Thanks
John
Helmut
★★★
avatar
Homepage
Vienna, Austria,
2012-09-11 18:53
(5027 d 17:21 ago)

@ jag009
Posting: # 9179
Views: 7,263
 

 Don’t worry about lenghty posts

Hi John!

❝ Something is wrong with my 90% CI routine. […] It's a bit long and Helmut will probably shoot me for sending such a long code in a message.


The current limit is 105 characters – you would get a warning in the preview and in posting. If you stop typing blanks between sentences you could reduce the length as well. ;-)

Dif-tor heh smusma 🖖🏼 Довге життя Україна! [image]
Helmut Schütz
[image]

The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes
jag009
★★★

NJ,
2012-09-11 23:07
(5027 d 13:07 ago)

@ Helmut
Posting: # 9180
Views: 7,258
 

 Don’t worry about lenghty posts

Hi Helmut,
I am still confused about blanks :confused:. You want me to write like in this?
Thanks
John
Helmut
★★★
avatar
Homepage
Vienna, Austria,
2012-09-12 16:49
(5026 d 19:26 ago)

@ jag009
Posting: # 9187
Views: 7,241
 

 off-topic

Hi John,

you are notoriously adding blanks before or after sentences. :-D These blanks are not displayed, but need editing in quoting your post in a reply. Below I have enclosed your original post within BB-codes. See the blanks now?

     I am still confused about blanks.  You want me to write like in this?
^^^^^                                  ^

Dif-tor heh smusma 🖖🏼 Довге життя Україна! [image]
Helmut Schütz
[image]

The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes
jag009
★★★

NJ,
2012-09-13 20:23
(5025 d 15:52 ago)

@ Helmut
Posting: # 9206
Views: 7,207
 

 off-topic

Got it ;-)
jag009
★★★

NJ,
2012-09-13 21:49
(5025 d 14:26 ago)

@ d_labes
Posting: # 9208
Views: 7,246
 

 Let GLM do the work

Hi D_labe,

Thanks for the suggestion of adding /CLPARM alpha=0.1 on the model statement. It works and save me many lines of code for computing the 90% CI :-)

John
UA Flag
Activity
 Admin contact
23,654 posts in 4,992 threads, 1,571 registered users;
164 visitors (0 registered, 164 guests [including 21 identified bots]).
Forum time: 12:15 CEST (Europe/Vienna)

“Data! Data! Data!” he cried impatiently.
“I can’t make bricks without clay!”    Arthur Conan Doyle

The Bioequivalence and Bioavailability Forum is hosted by
BEBAC Ing. Helmut Schütz
HTML5