43.6 DataGen: data whose truth you know
What you will learn
- What DataGen builds and why data with known truth is valuable.
- The three modes: scenarios, custom design and your own dataset.
- What the results views give you.
Why create data
A new analysis is risky because the truth is unknown. DataGen reverses that: you design a study, nlmx writes the dataset, a control stream, the true parameters, the fitted estimates and the settings files. You then know the answer in advance. That makes it the right tool to plan a study, to teach, to test a workflow, and to practise the other apps on data whose truth you know.
Three ways in
Scenarios. Six starting points fill the whole form: dose escalation, sparse population PK, IV infusion, covariate detection, data with values below the limit of quantification, and the classic demo.
Custom design. Specify:
- the structure: one, two or three compartments; oral, IV bolus or infusion; lag time; ODE models;
- the residual error model;
- up to 12 dose groups, doses per subject and dosing interval;
- sampling times and sparse sampling, and the LLOQ;
- true typical values and between-subject variability for each parameter;
- covariate effects (WT, AGE, SEX, EGFR, CRCL) and the seed.
Choose data only (--no-fit), or also the true covariate model (--covariate-model), or one of the fixed example projects (analytic, ODE, and IOV with BLQ).
My own dataset. Drop a delimited file with a header row and the columns ID TIME AMT DV; EVID MDV CMT RATE ADDL II SS are read if present. Nothing is simulated. nlmx builds control streams and a fitted base model around your data, takes starting values from the data (or from yours), and can add covariate effects on your own columns, for example CL~WT, V~WT, which also fits a covariate model and writes a forest settings file. The form lists the column names nlmx will change (upper case, reserved names, dropped text and date columns, numbered text IDs) and checks the structure against the coding before it runs.
What you get
- A summary: subjects, observations, doses, BLQ, groups and covariates.
- A sortable, filterable dataset grid with every row.
- A plots gallery: concentration over time on linear, semi-log and time-after-dose axes; the median with a 90% band; dose-normalised profiles; individual profiles; the sampling schedule; covariate distributions; eGFR against CrCl; with zoom, pan, fullscreen and PNG or SVG download.
- Every file of the project in a read-only code viewer with highlighting for control streams and settings.
analysis.csv, or the entire project as a zip.
Using DataGen well
- Start from the scenario closest to your study; the form fills itself.
- Change one thing at a time: dose levels, sample size, sampling times. Run again and use Compare to see the Profiles overlay of the two runs.
- Send the project onward: the dataset to QC and EDA, the control stream and estimates to Models or Exposure Lab, where
powerandsimscan use them.
Typical uses
- Study planning. Does the proposed sampling give estimable parameters? Does the sample size per arm hold up?
- Teaching. Each scenario is a small lesson with a known answer.
- Method testing. A pipeline that cannot recover a known truth is not ready for real data.
- Quick builds around your data. My own dataset gives you a working project in one step.
Limits
DataGen is a data and project generator. Its simulated data are only as realistic as the design and true values you give. Simulated studies are limited in size by the service, and a dataset for My own dataset has a size limit set by the service.
Navigation
See the previous page, next page, and the chapter overview.