# nlmx sims configuration (plain text, TOML syntax, .sims extension) # # A NONMEM $SIMULATION in one command: generate the study dataset, simulate it # with the control stream's model, compute the steady-state exposure of every # subject, summarise and plot it. # # 1. DATASET subjects (age, sex, body weight, other covariates), dosing and # sampling records. Ages 2 to 20 use the CDC weight-for-age # reference (LMS method); adults use a normal weight distribution. # Give [input] data (or --data) to simulate on your own dataset # instead; this step is then skipped. # 2. SIMULATION the model of the control stream, as NONMEM does: ETA from # OMEGA once per subject, EPS from SIGMA at every observation, # THETA/OMEGA/SIGMA from the initial estimates ($SIMULATION # TRUE=INITIAL) or the final ones (--ext run1.ext). # 3. METRICS Cmax, Tmax, Cmin, Ctrough, Cavg, AUCtau ... of every subject at # steady state, then tables by group, target attainment, box # plots, scatter plots and concentration-time plots. # # 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 sims run1.mod -c nlmx.sims # Every setting is described in docs/SIMS.md. [input] # control_stream = "run1.mod" # the model (or give it on the command line) # data = "data/own.csv" # simulate on this dataset; the generation step is skipped # estimates_file = "run1.ext" # simulate the final estimates instead of the initial ones # cdc_table = "wtage.csv" # a table in the CDC layout (Sex, Agemos, L, M, S) replacing # the built-in CDC 2000 weight-for-age reference [columns] # Which $INPUT items hold the covariates the generator makes. Without a name # the first of these found in $INPUT is used: weight WT BW BWT WGT WEIGHT BODYWT, # age AGE AGEY AGEYR AGEYRS, sex SEX GENDER GNDR, arm ARM TRT TRTN COHORT GROUP. # A covariate that no $INPUT item holds is still generated (it gives the dose of # a weight-based regimen and the groups of the summary) but not written to the dataset. # weight = "WT" # age = "AGE" # sex = "SEX" # arm = "ARM" age_unit = "years" # years | months | days: the unit of the age column [simulation] # seed = 20260101 # default: the seed of $SIMULATION (12345 in $SIM (12345)), else 20260101 # subproblems = 1 # simulations of the whole study (SUBPROBLEMS); default: $SIMULATION, else 1 # threads = 4 # worker threads (--threads): subjects and simulations run in parallel; # default: all cores. The results are identical for any number. etas = "sample" # sample | zero: ETA from OMEGA, or all zero (typical subject) eps = "sample" # sample | zero: EPS from SIGMA, or all zero (no residual error) omega_scale = 1.0 # multiplies every OMEGA element (0.5 halves the variances) sigma_scale = 1.0 # multiplies every SIGMA element # theta = ["1=3.2", "4=0.5"] # replace THETA values: INDEX=VALUE estimates = "auto" # auto | initial | final # auto: the final estimates when estimates_file is given (or $SIMULATION # says TRUE=FINAL and the run's .ext is beside the control stream), # otherwise the initial estimates, as NONMEM does. # initial: always the initial estimates. final: the .ext of the run # (estimates_file, or the one beside the control stream). # table_variables = ["CL", "V", "KA"] # model variables written next to the simulated values use_table_record = true # also write the items named in the control stream's $TABLE # lloq = 0.05 # limit of quantification of the simulated values blq = "none" # none | flag | set-lloq | drop: simulated values below lloq (none and flag keep the # values; with lloq a column BLQ marks them) # flag: a BLQ column (1 = below); set-lloq: the value becomes lloq; # drop: the record is left out of the simulated dataset [uncertainty] # A new parameter set for every simulation of the study (subproblem), drawn # around the estimates with their covariance matrix, or taken from a table. enabled = false # covariance = "run1.cov" # default: the .cov beside the estimates or the control stream # parameter_file = "raw_results.csv" # columns THETA1, OMEGA(1,1), SIGMA(1,1) ...; used in turn max_attempts = 100 # draws tried before a parameter set that is not admissible fails [population] kind = "adult" # adult | pediatric | mixed subjects = 100 # subjects per arm pediatric_fraction = 0.5 # share of children in a mixed population male_code = 0.0 # the codes written to the sex column female_code = 1.0 sex_sampling = "random" # random: each subject by chance | balanced: exact fractions, shuffled age_decimals = 1 # age (years) and body weight (kg) are rounded to these decimals weight_decimals = 1 # before they are written and used for the dose [population.pediatric] # Children and adolescents: the weight follows the CDC reference for the age and sex. age_min = 2.0 # years; the CDC reference covers 2 to 20 age_max = 20.0 age_distribution = "uniform" # uniform | normal | lognormal (normal: age_mean and age_sd, # truncated to age_min..age_max) age_mean = 11.0 age_sd = 5.0 weight = "cdc" # cdc | normal | lognormal. cdc: z ~ N(0,1) limited to # +-cdc_z_limit, weight from the LMS values at the age and sex weight_mean = 40.0 # kg, for weight = normal or lognormal weight_cv = 0.3 # fraction (0.3 = 30 %). Give weight_sd (kg, e.g. 12.0) instead of weight_cv to # state the spread in kg; not both # weight_mean_female = 38.0 # when the females differ from weight_mean weight_min = 5.0 # kg: weights outside are redrawn weight_max = 250.0 cdc_z_limit = 3.0 # SD female_fraction = 0.5 [population.adult] # Adults: normal body weight, for example 70 kg +/- 15 %. age_min = 18.0 age_max = 80.0 age_distribution = "normal" # uniform | normal | lognormal age_mean = 45.0 age_sd = 15.0 weight = "normal" # normal | lognormal (arithmetic mean and CV) weight_mean = 70.0 # kg weight_cv = 0.15 # fraction (0.15 = 15 %). Give weight_sd (kg, e.g. 10.5) instead of weight_cv to # state the spread in kg; not both # weight_mean_female = 62.0 # when the females differ from weight_mean weight_min = 35.0 # kg: weights outside are redrawn weight_max = 250.0 cdc_z_limit = 3.0 female_fraction = 0.5 [dosing] dose = 100.0 # mg per subject, or mg/kg when basis = "per-kg" basis = "fixed" # fixed | per-kg # dose_min = 10.0 # smallest and largest dose given (limits of a weight-based dose) # dose_max = 400.0 # dose_round = 5.0 # round the dose to a multiple of this amount weight_bands = [] # dose by weight band, replaces dose: # [[0, 20, 50], [20, 40, 100], [40, 250, 200]] = from kg, up to kg, dose interval = 24.0 # dosing interval in hours (II) doses = 1 # number of doses; the last dosing interval is analysed steady_state = true # the first dose is a steady-state dose (SS=1, II=interval), so a # single dose already describes steady state ss_doses = 20 # without an SS item in $INPUT a steady-state dose cannot be written: # the subject then gets this many doses (ADDL) and the last is observed compartment = 1 # CMT of the dose duration = 0.0 # infusion time in hours (RATE = dose / duration); 0 = bolus or oral # rate = 50.0 # RATE written to the record, replaces duration; -1 and -2 hand the # rate or the duration to the model (R1, D1) [sampling] times = [] # hours; empty: 12 times spread over the dosing interval relative_to = "last-dose" # last-dose: hours after the last dose | first-dose: since the first compartment = 0 # CMT of the observation records; 0 = the model's default observation compartment [metrics] enabled = true parameters = ["CMAX", "TMAX", "CMIN", "CTROUGH", "CAVG", "AUCTAU"] # CMAX TMAX CMIN TMIN CTROUGH CAVG AUCTAU FLUCT SWING PTR CLSS profile = "dense" # dense: the model without residual error on a fine grid | # sampled: at the sampling times | observed: the simulated DV interval = "last" # the dosing interval analysed: last | first | the number of a dose grid_points = 241 # points of the dense grid over the interval auc_method = "linear-up-log-down" # linear | linear-log | linear-up-log-down # variable = "IPRED" # model variable that holds the concentration; default: F (the prediction of the observation compartment) # tau = 24.0 # length of the interval (hours); default: the dosing interval # trough_time = 24.0 # hours after the dose at which CTROUGH is read; default: tau partial_auc = [] # areas within the interval, e.g. ["0-4", "0-12"] (columns AUC_0_4 ...) concentrations_at = [] # concentrations at these hours after the dose, e.g. [2.0, 6.0] (C_2H ...) dose_normalize = false # also divide the exposures by the dose (columns CMAX_DN ...) [summary] statistics = ["n", "mean", "sd", "cv", "geomean", "geocv", "min", "p5", "q1", "median", "q3", "p95", "max"] # n mean sd cv geomean geocv min max median q1 q3 iqr sem sum var, # p for any percentile (p2.5, p97.5) by = [] # subject columns to summarise by: ["ARM", "SEX", "AGEGRP"] ... # (an overall summary is always written) cross = false # also summarise by the crossing of all columns in `by` digits = 4 # significant digits replicate_interval = 95.0 # % interval of a statistic across the simulations of the study # [[summary.bins]] # a continuous covariate cut into groups (add the name to `by`) # column = "AGE" # AGE, WEIGHT, or any subject column # breaks = [2.0, 6.0, 12.0, 18.0, 100.0] # labels = ["2-5 y", "6-11 y", "12-17 y", "18+ y"] # default "2-6" ... # name = "AGEGRP" # default _GRP [figures] # boxplots = ["CMAX", "CMIN", "CAVG", "AUCTAU"] # metrics drawn as box plots; default: these four as far as # they are computed; [] = none # boxplot_by = "ARM" # column on the x axis; default: the first of summary.by, else ARM points = true # draw the subjects' points over the boxes # scatter = ["WEIGHT:AUCTAU", "WEIGHT:CMAX", "AGE:AUCTAU", "AGE:CMAX"] # "COLUMN:METRIC" pairs (default: these as far as computed; [] = none); # WEIGHT and AGE stand for the weight and age smoother = "loess" # loess | linear | none profiles = true # concentration-time plot with percentile bands profile_scale = "linear" # linear | log | both profile_percentiles = [5.0, 50.0, 95.0] profile_individuals = 20 # individual profiles drawn faintly (0 = none) [output] # directory = "run1_sims" # default: /_sims # stem = "run1" # file stem of the tables; default: the control stream's delimiter = "comma" # comma | tab | semicolon | space missing = "." # text for a missing value digits = 6 # significant digits of the numbers written header = true # the data files start with a line of column names dataset = true # _data.csv: the generated dataset, ready for NONMEM simulated = true # _sim.csv: the simulated dataset subjects = true # _subjects.csv: covariates, doses and random effects metrics = true # _metrics.csv: the exposure metrics of every subject summary = true # _summary.csv and the other summary tables profiles = false # _profiles.csv: the profile of every subject of the first simulation (large when dense) nonmem_table = false # _sim.tab: the simulated dataset as a NONMEM table html = true # report.html json = true # _summary.json settings = true # _settings.sims: these settings, ready to rerun [plots] # The figures (PNG, theme_classic style) are written to /plots unless enabled = false. # enabled = true # width = 7.0 # height = 5.0 # units = "in" # in | cm | mm | px # dpi = 300.0 # base_size = 11.0 # points # format = "png" # png | svg | both # title = true # legend = true # [[covariates]] # an additional covariate of the dataset, one block each # name = "CRCL" # the $INPUT item the values are written to # distribution = "normal" # normal | lognormal | uniform | binary | categorical | constant # group = "adult" # all | pediatric | adult # mean = 100.0 # normal: mean; lognormal: geometric mean # sd = 20.0 # normal: standard deviation (or cv, a fraction) # min = 30.0 # limits of a normal or lognormal covariate (redrawn outside) # max = 200.0 # decimals = 0 # [[covariates]] # name = "SMOK" # distribution = "binary" # 1 with this probability, else 0 # probability = 0.2 # [[covariates]] # name = "RACE" # distribution = "categorical" # one of the values; weights are probabilities (any scale) # values = [1.0, 2.0, 3.0] # weights = [0.7, 0.2, 0.1] # [[covariates]] # name = "ALB" # distribution = "lognormal" # geometric mean and coefficient of variation (a fraction) # mean = 4.2 # cv = 0.1 # [[covariates]] # name = "STUDY" # distribution = "constant" # value = 101.0 # A uniform covariate needs min and max. # [[arms]] # a group of subjects with its own population, dosing or sampling; # name = "10 mg" # whatever an arm does not say is taken from the tables above # subjects = 50 # [arms.dosing] # dose = 10.0 # [arms.population] # kind = "pediatric" # [arms.sampling] # times = [0.5, 2.0, 6.0, 24.0] # [[targets]] # a range a metric should be in; the share of subjects in it # metric = "CAVG" # is reported (and drawn on the plots) # lower = 10.0 # upper = 50.0 # name = "efficacy window"