# nlmx power configuration (plain text, TOML syntax, .power extension) # # Sample size and power of a clinical trial by pharmacometric methods: # # sse Stochastic Simulation and Estimation (as PsN's sse): for every # design scenario, simulate `replicates` virtual trials from the model # and re-estimate it on each, with the full model and, for every # hypothesis, the reduced model. Power is the fraction of trials in # which the test is significant; bias, RSE, shrinkage, coverage and the # convergence rate are collected on the way. # fim the expected Fisher information matrix of the design (PopED / PFIM # style): expected RSE of every parameter, the power of the Wald test of # every hypothesis from the Cramer-Rao bound and the sample size that # reaches the target power, in seconds and without simulation. # both fim first (it narrows the design space), then sse. # # Steps: 1. the model and the design dataset 2. the hypotheses [[test]] # 3. the scenario grid [design] 4. the methods and criteria # # Every key is optional; the values shown are the defaults. Command-line # options override the file. Relative paths resolve against this file's folder. # Use it with: nlmx power run1.mod -c nlmx.power # Every setting is described in docs/POWER.md. [input] # control_stream = "run1.mod" # the reference model (or give it on the command line) # data = "data/design.csv" # the design: subjects, doses and sampling; default $DATA # model_dir = "runs/run1" # folder with the results of the run: .ext and .cov # estimates_file = "run1.ext" # or the final estimates (.ext) directly # covariance = "run1.cov" # or their covariance (.cov): needed for uncertainty = true # Without model_dir and estimates_file, the estimates written in # the control stream ($THETA, $OMEGA, $SIGMA) are taken as the # final estimates. Nothing is looked for beside the control stream. [analysis] method = "sse" # sse | fim | both alpha = 0.05 # significance level of the tests target_power = 0.8 # the power a design must reach (0.9 for pivotal claims) ci_level = 95.0 # % confidence level of the intervals (coverage) # seed = 20260101 # master seed: the results repeat for any number of threads # threads = 8 # worker threads (default: all cores) [design] # Each combination of sample_sizes x dropout_rates x effect_multipliers x # [[schedule]] is one scenario. Subjects are drawn with replacement from the # dataset (within the arms), so covariates and doses keep their joint distribution. # sample_sizes = [50, 100, 150] # total subjects per scenario; default: the dataset's subjects # arm_column = "DOSE" # arms (strata) = the values of this column allocation = "template" # template | equal | weights (how a scenario's subjects are shared out) # arm_weights = [1, 1, 2] # relative sizes, arms in increasing order of the column, for "weights" dropout_rates = [0.0] # fraction of subjects who drop out (at a uniform time in their observed span) missing_rate = 0.0 # fraction of observations missing at random compliance = 1.0 # fraction of the dose records taken # lloq = 0.5 # lower limit of quantification blq_action = "drop" # drop | half | lloq: a value below the limit is removed, set to LLOQ/2, set to LLOQ effect_multipliers = [1.0] # multiply every effect's distance from its null value (power against effect size) # Alternative sampling schedules: only the observations at these times are kept. # [[schedule]] # name = "sparse" # times = [2, 12, 48] # tolerance = 0.01 # observations this close to a time are kept # The hypotheses. Power is evaluated for each; all effects are simulated at their # true value and estimated together. Without any [[test]] only the precision # criteria (bias, RSE, shrinkage, coverage, convergence) are reported. # # [[test]] # a covariate effect: CL = TVCL * (WT/median)^effect # name = "WT on CL" # kind = "covariate" # parameter = "CL" # a parameter of the model code # covariate = "WT" # a column of the dataset # form = "power" # power | exponential | linear | proportional # value = 0.75 # the true effect # null = 0.0 # the effect under H0 (the test has one degree of freedom) # reference = 70 # default: the median of the dataset # level = 1 # proportional: the covariate value the shift applies to # # [[test]] # a THETA of the model (a drug effect, EMAX, ...) # name = "drug effect" # kind = "parameter" # theta = "THETA(4)" # or 4 # value = 0.4 # the true value; default: the estimate # null = 0.0 # the value under H0 [estimation] approximation = "foce_i" # foce_i | foce | laplace: the objective of every fit start = "reference" # reference | truth | perturbed: where each fit starts max_iterations = 100 # per fit covariance_step = true # needed for RSE, coverage and Wald tests covariance_matrix = "r" # r | s | rsr test = "lrt" # lrt | wald | both: which test decides "significant" # lrt: objective-function difference of the full and reduced fits # (3.84 for one degree of freedom at alpha = 0.05) # wald: the estimate's interval excludes the null value [sse] replicates = 100 # virtual trials per scenario (500-1000 for a power near 80 % to +-2 %) type1_replicates = 0 # extra trials with every effect at its null: the type I error resume = false # continue an interrupted run in the same output folder uncertainty = false # draw each trial's parameters from the covariance of the estimates # parameter_file = "sets.csv" # or use these parameter sets in turn max_attempts = 100 # draws tried for an admissible parameter set save_datasets = "none" # none | first | all: write the simulated datasets [fim] approximation = "fo" # fo | foce | focei: linearisation about eta = 0, or about draws of eta kind = "reduced" # reduced | full: reduced ignores the dependence of the variance on the fixed effects (PopED default; matches SSE), full is optimistic for covariate effects draws = 100 # eta draws per subject (foce, focei) step = 1e-4 # relative finite-difference step [criteria] rse_fixed = 30.0 # % RSE limit of the fixed effects rse_random = 50.0 # % RSE limit of the variances # rse_limits = ["THETA(1)=20", "OMEGA(1,1)=40"] bias = 15.0 # % limit of the relative bias shrinkage = 30.0 # % limit of the ETA shrinkage convergence = 90.0 # % minimum of converged estimations [output] # directory = "power_out" # default _power beside the control stream # stem = "warfarin" plots = true report = true