Simulate a study from a NONMEM control stream, as $SIMULATION does: generate the dataset (CDC weight-for-age for ages 2-20, normal weights for adults, sex, dosing and sampling) or take your own, simulate it (random effects, residual error, replicates), compute the steady-state exposure of every subject (Cmax, Cmin, Ctrough, Cavg, AUCtau ...), summarise and plot it. Optional settings file: -c nlmx.sims (--print-config writes the annotated template) Usage: nlmx sims [OPTIONS] [CONTROL_STREAM] Arguments: [CONTROL_STREAM] Control stream (.ctl/.mod) of the model to simulate; same as --ctl Options: -h, --help Print help Method: --threads Worker threads for subject- and replicate-level parallelism (default: all cores). Results do not depend on this value Input selection: --ctl Control stream (.ctl/.mod) --ext Final estimates (.ext); sims: the parameter values of --estimates final; power: the final estimates (default: those of the control stream) --cov Parameter covariance matrix (.cov); sims: with it every simulation of the study uses a new parameter set (parameter uncertainty); power: needed for --uncertainty --data Analysis dataset (overrides $DATA); sims: simulate this dataset instead of generating one Core: -c, --config Settings file of the command (TOML syntax), with the command's extension: .covar (cov, posterior, inspect, validate, fit), .qcd, .qcn, .eda, .nca, .init, .screen, .vpc, .forest, .sims, .er, .power, .gen, .ask -o, --output Output directory --run-dir Existing run directory, for `resume` --overwrite Allow writing into a non-empty output directory --dry-run Run the validation pipeline instead of the full analysis --no-checkpoint Do not write replicate checkpoints (posterior engine) Shared numerics: --seed Master seed (uncertainty draws, resampling, posterior draws, vpc simulations, autoinit ML) Logging and output: --suppress-console <0|1> 0 (default) prints progress to the terminal; 1 silences it (the log is still written) --log-file Write the transcript here instead of log_.txt --no-color Disable ANSI colour --license Print the license (CC BY-ND 4.0), the third-party components, how long this version may be used and how to contact the author, and stop -v, --verbose... Increase verbosity (repeatable: info -> debug -> trace) -q, --quiet Errors only on the terminal (the log file is unaffected) --keep-subject-ids Do not hash subject identifiers in outputs --format Output format for `schema`: txt | toml | json | json-schema [default: txt] Generate and simulation study: --subjects generate, simulate-study: subjects in total (generate: split evenly over the groups unless --subjects-per-group is given) --n-doses generate: doses per subject (default 1; ADDL = N - 1); sims: number of doses, the last interval is analysed (default 1) --infusion-duration generate: infusion duration in hours for --route infusion (default 1); sims: infusion time in hours (0 = bolus or oral; needs a RATE item in $INPUT) --sample-times generate: sampling times (h after each sampled dose), comma separated (default by structure and route); sims: sampling times in hours after the last dose (default 12 times over the interval) Fit: --stem fit: file stem for the NONMEM-format outputs (default: the control stream's stem) VPC: --lloq vpc, autoinit, screen: lower limit of quantification (vpc: a number or a data column; autoinit, screen: a number); values below it are censored / left out --no-caption vpc, fit, autoinit, screen: no grey caption (check, observations, date) under the charts --param-uncertainty vpc: simulate with parameter uncertainty: a new THETA/OMEGA/SIGMA draw from the .cov for every replicate --param-file vpc: parameter sets (CSV with THETA1.., OMEGA(1,1).., SIGMA(1,1).. columns, e.g. bootstrap results) used one per replicate; implies --param-uncertainty --no-plots vpc: tables only; no HTML report or report SVG files --no-svg vpc, fit, autoinit, screen: write no SVG files at all (neither svg/ nor plots/svg/); PNG plots and the HTML report are unaffected --print-config write the command's annotated settings template to FILE (with the command's extension, e.g. nlmx.eda, nlmx.vpc) and exit NCA: --auc-method nca: trapezoid rule: linear | linear-log | linear-up-log-down (default) --partial-auc nca: partial areas, e.g. 0-4,0-12,4-12 (times after the dose) --steady-state nca: which intervals are at steady state: auto (SS = 1 records; default) | none | last | all --tau nca: dosing interval tau when the data have no II Sims: exposure metrics: --conc-variable sims: the model variable that holds the concentration for the exposure metrics, e.g. IPRED (default: F) Sims: dosing and sampling: --ss-doses sims: doses given to reach steady state when $INPUT has no SS item (default 20) --dose sims: dose in mg per subject (default 100) --dose-per-kg sims: dose in mg per kg of body weight --dose-levels sims: one arm per dose level, e.g. 50,100,200 (subjects per arm: --subjects) --weight-bands sims: dose by weight band, "from-to:dose" separated by commas, e.g. 0-20:50,20-40:100,40-250:200 --dose-min sims: smallest dose given --dose-max sims: largest dose given (a cap for weight-based doses) --dose-round sims: round the dose to a multiple of this amount --dose-rate sims: value of RATE (-1 and -2 for a modelled rate or duration); replaces --infusion-duration --dose-cmt sims: compartment that receives the dose (default 1) --sample-relative-to sims: the sampling times are measured from the last-dose (default) | first-dose Sims: input and population: --estimates sims: which parameter values are simulated: auto (the control stream's $SIMULATION decides) | initial | final (needs --ext) --cdc-table sims: weight-for-age table in the CDC layout (Sex, Agemos, L, M, S) replacing the built-in CDC 2000 reference --weight-col sims: $INPUT item that holds the body weight (default: WT, BW, BWT, WGT, WEIGHT) --age-col sims: $INPUT item that holds the age (default: AGE, AGEY, AGEYR) --sex-col sims: $INPUT item that holds the sex (default: SEX, GENDER, GNDR) --arm-col sims: $INPUT item that numbers the arms (default: ARM, TRT, COHORT, GROUP) --population sims: who is simulated: adult | pediatric | mixed (default adult) --pediatric-fraction sims: share of pediatric subjects of a mixed population (default 0.5) --pediatric-age sims: pediatric age range in years, e.g. 2-20 (default 2-20; the CDC weights cover 2 to 20) --pediatric-weight sims: how the pediatric weight is drawn: cdc (default) | normal | lognormal --adult-age sims: adult age range in years (default 18-80) --adult-age-mean sims: mean adult age in years (default 45) --adult-age-sd sims: standard deviation of the adult age in years (default 15) --adult-weight-mean sims: mean adult body weight in kg (default 70) --adult-weight-cv sims: coefficient of variation of the adult weight: a fraction (0.15) or a percentage (15%) (default 0.15) --adult-weight-sd sims: standard deviation of the adult weight in kg, instead of the coefficient of variation --adult-weight-range sims: lowest and highest adult weight in kg (default 35-250) --female-fraction sims: share of females, both groups (default 0.5) --sex-codes sims: codes of males and females in the sex column (default 0,1) --sex-sampling sims: sex assignment: random (default) | balanced --cdc-z-limit sims: limit of the CDC z-score of the pediatric weights (default 3) --covariate sims: additional covariate, repeatable: NAME=normal(mean,sd)[min,max] | lognormal(gmean,cv) | uniform(min,max) | binary(p) | categorical(v:w,v:w) | constant(v) Sims: simulation: --subproblems sims: number of simulations of the whole study (NONMEM SUBPROBLEMS; default: $SIMULATION, else 1) --sim-etas sims: random effects: sample (default) | zero (typical subject) --sim-eps sims: residual error: sample (default) | zero --omega-scale sims: multiply OMEGA by this factor (default 1) --sigma-scale sims: multiply SIGMA by this factor (default 1) --set-theta sims: replace THETA values, e.g. 1=3.2,4=0.5 --table-vars sims: model variables written next to the simulated values, e.g. CL,V,KA (default: the items of $TABLE). custom: the columns a summary / demographics / correlation table describes --no-table-record sims: ignore the items of the control stream's $TABLE record --blq-action sims: simulated values below --lloq: none (default) | flag (both keep the values and mark them in the column BLQ) | set-lloq (values become the LLOQ) | drop (the observations are removed); power: drop (default) | half | set-lloq Sims: metrics and summary: --metrics sims: metrics to compute, e.g. CMAX,TMAX,CMIN,CTROUGH,CAVG,AUCTAU,FLUCT,SWING,PTR,CLSS --no-metrics sims: do not compute the exposure metrics --metric-profile sims: profile of the metrics: dense (default; the model on a fine grid) | sampled | observed --metric-interval sims: dosing interval analysed: last (default) | first | the number of the dose --grid-points sims: points of the dense grid over the interval (default 241) --trough-time sims: time after the dose at which CTROUGH is read (default: the end of the interval) --conc-at sims: concentrations at these times after the dose, e.g. 2,6 (columns C_2H, C_6H) --dose-normalize sims: also divide the metrics by the dose --summary-by sims: summarise by these subject columns, e.g. ARM,SEX,AGEGRP --summary-stats sims: statistics: n,mean,sd,cv,geomean,geocv,min,max,median,q1,q3,iqr,sem,p --summary-cross sims: also summarise by the crossing of all --summary-by columns --age-bins sims: age groups (column AGEGRP) from cut points in years, e.g. 2,6,12,18,100 --weight-bins sims: weight groups (column WTGRP) from cut points in kg, e.g. 0,20,40,60,250 --targets sims: target ranges, e.g. CAVG:10-50,CMIN:>=5,CMAX:<=100; the share of subjects in range is reported --digits sims: significant digits of the summary tables (default 4) Sims: figures and output: --boxplot-metrics sims: metrics drawn as box plots, or none (default CMAX,CMIN,CAVG,AUCTAU) --boxplot-by sims: column on the x axis of the box plots (default: the first --summary-by, else ARM) --scatter sims: scatter plots "X:Y", e.g. WEIGHT:AUCTAU,AGE:CMAX, or none --smoother sims: smoother of the scatter plots: loess (default) | linear | none --no-profile-plot sims: no concentration-time plot --profile-scale sims: scale of the concentration-time plot: linear (default) | log | both --write-profiles sims: also write the concentration-time profile of every subject, as the metrics use it (large when dense) --write-nonmem-table sims: also write the simulated dataset as a NONMEM table (TABLE NO. 1) Plots (vpc, fit, autoinit, screen, nca): --plot-width plots: figure width in --plot-units (default 7 in) --plot-height plots: figure height in --plot-units (default 5 in) --plot-units plots: units of width and height: in (default) | cm | mm | px --plot-dpi plots: resolution in dots per inch (default 300) --plot-base-size plots: base font size in points (default 11, as ggplot2) This lists the options of `nlmx sims` only (418 options of other commands are not shown). `nlmx --help` lists every option of every command.