PowerTOST V1.4-5 - scABEL functions [RSABE / ABEL]

posted by d_labes  – Berlin, Germany, 2017-05-23 12:25 (2527 d 23:54 ago) – Posting: # 17391
Views: 3,073

Dear All!

The (official) version on CRAN, promised by Helmut for April, is out now.

Beside the functions scABEL.ad() and sampleN.scABEL.ad() now allowing simulations via subject data there is another goody:
power.scABEL.sdsims() has an argument design_dta which you may use to evaluate designs with missing data. specify here a data.frame with columns subject, sequence, period and tmt without the rows were missings occured. Optional specify an additional column logval (log-transformed PK metric) with NA indicating the missings.
This feature is experimental! Only use it if you know what you do.

Example:
# full data partial replicate design (CVwT==CVwR), n=36 (12 in each sequence group)
# power at theta0=0.9
power.scABEL.sdsims(CV=0.3, n=36)
[1] 0.67794
# TIE
power.scABEL.sdsims(CV=0.3, n=36, theta0=1.25, nsims=1e6)
[1] 0.071743

# create the data.frame (misuse a hidden function in PowerTOST)
dta <- PowerTOST:::prep_data2(seqs=c("TRR", "RTR", "RRT"), nseq=c(12, 12, 12), muR=log(10),
                              ldiff=log(0.9), s2wT=CV2mse(0.3), s2wR=CV2mse(0.3))
# missings for subject 1 and 2 in period 3, sequence group TRR
dta$logval[dta$subject==1 & dta$period==3] <- NA
dta$logval[dta$subject==2 & dta$period==3] <- NA
# power at theta0=0.9
power.scABEL.sdsims(CV=0.3, design_dta=dta)
[1] 0.67038
# TIE
power.scABEL.sdsims(CV=0.3, design_dta=dta, theta0=1.25, nsims=1e6)
[1] 0.072705

# Evaluation of subjects with full data (excl. subject 1,2)
dta0 <- dta[!(dta$subject %in% c(1,2)), ]
# power at theta0=0.9
power.scABEL.sdsims(CV=0.3, design_dta=dta0)
[1] 0.65273
# or equivalently
power.scABEL.sdsims(CV=0.3, n=c(10, 12, 12))
[1] 0.65273
# TIE
power.scABEL.sdsims(CV=0.3, design_dta=dta0, theta0=1.25, nsims=1e6)
[1] 0.071462
# or equivalently
power.scABEL.sdsims(CV=0.3, n=c(10, 12, 12), theta0=1.25, nsims=1e6)
[1] 0.071462

Regards,

Detlew

Complete thread:

UA Flag
Activity
 Admin contact
22,993 posts in 4,828 threads, 1,659 registered users;
70 visitors (0 registered, 70 guests [including 6 identified bots]).
Forum time: 12:20 CEST (Europe/Vienna)

So far as I can remember,
there is not one word in the Gospels
in praise of intelligence.    Bertrand Russell

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