Learn R Programming

PharmPow (version 1.0)

PharmPow_parallel: Pharmacometric power calculations for mixed parallel study designs

Description

This function performs power calculations for mixed parallel study designs. The input data for these functions is taylored for NONMEM .phi files.

Usage

PharmPow_parallel(datafullA, datareducedA, datastratifyA, stratifyA, datafullB, datareducedB, datastratifyB, stratifyB, maxIDsA = 200, maxIDsB = 200, nresamples = 10000, power = 80, designAlab = "Number of patients sampling design A", designBlab = "Number of patients sampling design B")

Arguments

datafullA
The (NONMEM).phi file from the full model fitted on design A can be defined here
datareducedA
The (NONMEM).phi file from the reduced model fitted on design A can be defined here
datastratifyA
The (NONMEM TABLE) file containing the covariate to stratify design A for can be defined here
stratifyA
The covariate to stratify design A for can be defined here
datafullB
The (NONMEM).phi file from the full model fitted on design B can be defined here
datareducedB
The (NONMEM).phi file from the reduced model fitted on design B can be defined here
datastratifyB
The (NONMEM TABLE) file containing the covariate to stratify design B for can be defined here
stratifyB
The covariate to stratify design B for can be defined here
maxIDsA
The maximum number of ID's for design A can be defined here (default is 200)
maxIDsB
The maximum number of ID's for design B can be defined here (default is 200)
nresamples
The number of resamples (different study designs) can be defined here (default is 10000)
power
The target power for the study designs can be defined here (default is 80%)
designAlab
The label for design A can be defined here (default is "Number of patients sampling design A"")
designBlab
The label for design B can be defined here (default is "Number of patients sampling design B")

Examples

Run this code
# Power calculations for a mixed study design (for design A & B)
## Not run: PharmPow_parallel(datafullA=system.file("extdata","designA_full",
#                                                  package="PharmPow"), 
#                            datareducedA=system.file("extdata","designA_red",
#                                                     package="PharmPow"), 
#                            datastratifyA=system.file("extdata","designA_stratify",
#                                                      package="PharmPow"), 
#                            stratifyA="PREG", 
#                            datafullB=system.file("extdata","designB_full",
#                                                  package="PharmPow"), 
#                            datareducedB=system.file("extdata","designB_red",
#                                                     package="PharmPow"), 
#                            datastratifyB=system.file("extdata","designB_stratify",
#                                                      package="PharmPow"), 
#                            stratifyB="PREG")
# ## End(Not run)

Run the code above in your browser using DataLab