# ============================================================================= # nlmx er — exposure-response analysis settings (a .er file in TOML syntax) # # nlmx er -c nlmx.er # nlmx er er.csv --exposure AUC,CMAX --response CHG --group DOSE --placebo 0 # # Every key is optional; the values below are the defaults. The command line # wins over the file. Unknown keys are errors. Relative paths resolve against # this file's folder. See docs/ER.md. # # The dataset has one row per subject (or per subject and visit for a # longitudinal endpoint): a subject column, one or more exposure metrics (AUC, # Cmax, Cavg, Cmin, ... from NCA, sims or post hoc estimates), one or more # endpoints, the dose group (arm), and covariates. # ============================================================================= [data] # file = "er.csv" # the dataset (or give it on the command line) # id = "ID" # subject column (default: ID when present) # filter = "STUDY != 3" # rows to keep, R syntax: & | ! == != < > %in% c(...) # mutate = "LNAUC = log(AUC); HIGH = DOSE == 200" # # change or create columns first (R syntax, in order, # # before the filters; true is 1, false 0); the # # changed dataset is written to the output folder subject_rows = "error" # several rows of one subject (not longitudinal): # error | first | last | mean | all missing = [".", "NA", "NaN", ""] # cells read as missing # The analysis. Every key of [analysis] can be repeated in [[analyses]] blocks # (below) to run several analyses with different settings; keys a block leaves # out come from [analysis]. [analysis] type = "continuous" # continuous | binary | ordinal | count | tte | longitudinal # continuous : linear, log-linear, Emax, sigmoid Emax, # hockey-stick models (least squares) # binary : logistic regression (logit link) # ordinal : proportional-odds logistic regression # count : Poisson / negative binomial regression # tte : Kaplan-Meier by exposure group, log-rank # test, Cox proportional hazards # longitudinal: means over visits by exposure group, # exposure slope per visit # exposure = ["AUC", "CMAX"] # exposure metric column(s); each is analysed # response = ["CHG"] # endpoint column(s); each is analysed with each exposure # group = "DOSE" # dose group (arm) column # placebo = ["0", "Placebo"] # values of `group` that are placebo # by = ["STUDY"] # also analyse each level of these columns separately # covariates = ["BASE", "SEX"] # adjusted for in every model (continuous centred on # the median; text or <= 5 levels: categories) # filter = "VISIT == 12" # rows of this analysis only (after [data] filter) # name = "Week 12" # label of the analysis (default: RESPONSE vs EXPOSURE) models = ["linear", "log-linear", "emax", "sigmoid-emax", "hockey-stick"] # continuous: all five; binary, ordinal, count: the first # four (on the logit / log scale); tte (Cox): linear, # log-linear criterion = "aic" # best model: aic | aicc | bic ci = 95 # confidence level (%) of intervals and bands effect_per = "iqr" # exposure change for slopes and odds/rate/hazard ratios: # iqr (25th -> 75th percentile) | unit | sd | doubling | a number min_subjects = 10 # fewer subjects: the analysis is skipped # exposure placebo_value = 0 # exposure given to placebo subjects active_zero = "exclude" # active subjects with exposure <= 0 or missing: # exclude | keep # exposure_min = 0 # keep exposures in [min, max] # exposure_max = 1000 bins = 4 # exposure groups of the active subjects (4 = quartiles) bin_method = "quantile" # quantile | equal (equal width) | edges # edges = [0, 10, 50, 200] # boundaries for bin_method = "edges" log_zero = "exclude" # log-linear models and C = 0 (placebo): # exclude | offset (log(C + log_offset)) # log_offset = 0.5 # default: half the smallest positive exposure # continuous endpoints outliers = "keep" # keep | flag | exclude: |studentised residual| > outlier_z outlier_z = 4 # (exclude refits without them) prediction_interval = false # also the 95% prediction interval of a new subject # binary endpoints positive = ["1", "Y", "YES", "TRUE", "RESPONDER"] # values meaning "response" proportion_ci = "wilson" # wilson | exact (Clopper-Pearson), binned proportions # ordinal endpoints # levels = ["0", "1", "2", "3"] # order of the categories (default: sorted values) # count endpoints # offset = "FUTIME" # exposure time of each subject (log offset), e.g. years dispersion = "auto" # auto (quasi-Poisson when Pearson chi2/df > 1.5) | # poisson | quasi | negbin (negative binomial, NB2) # time-to-event endpoints (`response` or `time` is the time column) # time = "PFS" # time to event or censoring # event = "EVENT" # event indicator column event_value = ["1"] # values of `event` meaning an event (others: censored) km_groups = "bins" # Kaplan-Meier curves by: bins (placebo + exposure # groups) | group (dose groups) | both km_ci = "log-log" # log-log | log | plain: confidence interval of S(t) reference = "placebo" # Cox hazard ratios of the exposure groups against: # placebo | lowest (the lowest exposure group) # landmarks = [6, 12] # survival probability reported at these times # risk_times = [0, 3, 6, 9, 12] # number at risk shown at these times (default: the ticks) # longitudinal endpoints # visit = "VISIT" # visit or nominal time column (default: time) # baseline = "BASE" # baseline column, for change from baseline change_from_baseline = false # analyse response - baseline (baseline column, or the # baseline_visit = 0 # value at this visit) central = "mean" # mean | median error = "se" # se | sd | ci: error bars of the visit summaries # covariate selection (model-based types): `covariates` are the candidates covariate_selection = "none" # none (every covariate kept) | forward | backward | # stepwise (forward, then backward: as SCM) p_forward = 0.05 # forward inclusion: likelihood-ratio p below this p_backward = 0.01 # backward elimination: removed when p is not below this # forced_covariates = ["BASE"] # always in the models, never tested # selection_model = "emax" # the model the selection runs on (default: the best # model without the candidate covariates) # placebo correction (continuous and longitudinal endpoints) placebo_correction = "none" # none | subtract: the mean placebo response is # subtracted (per visit for longitudinal endpoints) # placebo_by = ["STUDY"] # ... within the levels of these columns # uncertainty bootstrap = 0 # replicates (subjects resampled within dose groups) # for parameter and curve intervals; 0 = none # seed = 20241024 # [[analyses]] # more analyses: any key of [analysis] # name = "ORR vs Cavg" # type = "binary" # exposure = ["CAVG"] # response = ["ORR"] # # [[analyses]] # name = "PFS" # type = "tte" # exposure = ["AUC"] # time = "PFS" # event = "PFSEVT" [labels] # axis labels of columns (default: the column name) # AUC = "AUC (ng·h/mL)" # CHG = "Change from baseline" [figures] show = ["all"] # plots to draw (nlmx er --list-plots), or ["none"] x_scale = "linear" # linear | log (exposure axis; placebo drawn at the left) y_scale = "linear" # linear | log (continuous and count endpoints) points = true # the observations behind the curves jitter = 0.03 # vertical jitter of 0/1 points (fraction of the axis) point_alpha = 0.5 point_size = 1.0 # relative size band = true # confidence band of the fitted curve binned = true # observed mean / proportion by exposure group, with CI boxplot = true # exposure by dose group under the exposure-response plot all_models = false # every fitted model on the main plot (else the best) risk_table = true # number at risk under the Kaplan-Meier plots censor_marks = true # censored times on the Kaplan-Meier curves km_band = false # confidence band of the Kaplan-Meier curves color_by = "group" # points coloured by: group | bins | none # x_title = "Cavg (ng/mL)" # axis titles (default: [labels] or the column) # y_title = "Probability of response" # palette = ["#0072B2", "#E69F00", "#009E73", "#D55E00", "#CC79A7", "#56B4E9"] placebo_color = "#7F7F7F" curve_color = "#000000" legend_position = "right" # right | bottom | top | none caption = true # grey caption: model, n, date ncol = 2 # panels per row of multi-panel plots [output] # directory = "er_out" # default: /_er tables = true # CSV tables data = true # the analysis datasets as used (with exclusions) [plots] # size and format of the PNG/SVG files width = 7 # inches (units = in | cm | mm | px) height = 5 units = "in" dpi = 300 base_size = 11 # base font size (points) format = "png" # png | svg | both title = true legend = true