Documentation

F.6 vpc, sims, generate, power and er

F.6 vpc, sims, generate, power and er: figure of the topics covered

What you will learn

  • Find a short, checked answer to 16 common questions about evaluation, simulation, design and exposure–response.
  • Follow the link after each answer to the page that explains it and shows the evidence.
  • Recognise the mistakes that these questions come from, so that you do not make them.

Prerequisites: Chapter 27 to Chapter 33 are helpful.

Predictive checks, study simulation, synthetic projects, power and sample size, and exposure–response analysis.

Commands named on this page: fit, vpc, sims, generate, simulate-study, power, er.

How to read an answer. Each answer restates what the book says, in a few sentences, and ends with Read more: the page that explains it, with its evidence. The answers are short on purpose. When a decision depends on one, open the linked page.

The 16 questions on this page

  1. Which predictive check should I run: a VPC, a pcVPC or a pvcVPC?
  2. What does a prediction correction do?
  3. How many replicates should a VPC use?
  4. Some observed percentiles fall outside the bands. Is the model wrong?
  5. How does vpc treat BLQ data?
  6. How do I include parameter uncertainty in a VPC?
  7. What are the three stages of sims?
  8. Can sims use my own dataset instead of generating subjects?
  9. How do I carry parameter uncertainty into a simulation?
  10. What is the difference between generate and simulate-study?
  11. Should I use power --method fim or sse?
  12. How does the power calculation turn information into a sample size?
  13. How many sample sizes should I put in the grid?
  14. What is the difference between dropout and missingness in power?
  15. How do I run a first er analysis?
  16. Which endpoints does er handle, and how is the effect of exposure expressed?

Answers

F.6.1 Which predictive check should I run: a VPC, a pcVPC or a pvcVPC?

Choose from the question and the design. The plain VPC keeps the original scale and suits a single dose and a homogeneous population. The prediction-corrected VPC (pcVPC) removes the variation that the model already explains, and is a practical default for mixed doses or important covariates. The pvcVPC also standardises changing variability. The NPC tests record-level coverage without binning. They are complementary views, not competing tests.

Read more: 27.12 Choosing VPC, pcVPC, pvcVPC, or NPC; 27.7 Plain VPC; 27.8 Prediction-corrected VPC; 27.10 Variability-corrected VPC; 27.11 Numerical predictive check.

F.6.2 What does a prediction correction do?

Each observed and simulated value is normalised to the median population prediction in its bin (with ETA = 0 and EPS = 0): on the ordinary scale pcY = lb + (Y − lb)(PREDbin − lb)/(PRED − lb). The identical transformation is applied to the observed and simulated data, so the comparison keeps the unexplained variability.

Read more: 27.8 Prediction-corrected VPC; 27.9 pcVPC lower bound and log-transformed data.

F.6.3 How many replicates should a VPC use?

The default is 1000 and the minimum is 20. Use small counts for smoke tests and larger, justified counts for decisions or publications; increase them when an outside flag sits near a band boundary or the conclusion changes with the seed. More replicates stabilise the bands but add no information about the observed data.

Read more: 27.30 Replicate count, Monte Carlo stability, and seed.

F.6.4 Some observed percentiles fall outside the bands. Is the model wrong?

Not necessarily. With 95 % intervals roughly 5 % of the comparisons can be outside even for a compatible model (although they are correlated), so an isolated flag is expected. The signal is a coherent pattern: consecutive median deviations suggest a bias of location or timing, and repeated deviations in a tail suggest a problem of variability. Chapter 41 compares the count outside with the count expected by chance.

Read more: 27.15 Outside flags and multiple comparisons; 27.35 Reading location, spread, and timing patterns; 41.25 Case 6: a prediction-corrected VPC of the final model.

F.6.5 How does vpc treat BLQ data?

It censors observed and simulated values at a number or at an LLOQ column (an optional flag column marks the observed ones), and then compares the BLQ proportions and the censored percentiles. The BLQ panel and the NPC need the limit to be declared consistently for the observed and the simulated side.

Read more: 27.25 LLOQ censoring and percentile behavior; 27.26 BLQ panel, NPC exclusions, and M3 simulation; 6.12 BLQ behavior by command.

F.6.6 How do I include parameter uncertainty in a VPC?

Set the draws to come from the estimates' covariance (multivariate normal draws around the estimates) or from a bootstrap, SIR or posterior parameter file. A VPC at the fixed estimates and one that draws the parameters answer different questions; Chapter 41 shows a check that holds under both.

Read more: 27.27 Fixed-estimate versus parameter-uncertainty VPC; 27.28 Covariance-based parameter draws and admissibility; 27.29 Bootstrap, SIR, and posterior parameter files; 41.27 Case 6: the numerical check, censored observations and parameter uncertainty.

F.6.7 What are the three stages of sims?

Stage 1 builds a NONMEM-shaped dataset from $INPUT (or reads the one you supply with --data); stage 2 evaluates the control-stream model, drawing ETA once per subject and EPS at observation records for each subproblem; stage 3 derives the exposure metrics and summaries. A subproblem is one simulation of the whole study.

Read more: 28.3 The three-stage pipeline; 28.5 Generated population or supplied design; 28.20 Subproblems, seed, random streams, and threads.

F.6.8 Can sims use my own dataset instead of generating subjects?

Yes. With --data the generation is skipped and your records become the simulation skeleton, with the same $DATA filtering, positional mapping, renaming and DROP handling as fit. Without it, sims generates subjects, covariates, doses and sampling in the exact $INPUT layout.

Read more: 28.5 Generated population or supplied design; 28.6 How INPUT controls the generated dataset.

F.6.9 How do I carry parameter uncertainty into a simulation?

With --param-uncertainty, each subproblem gets a new THETA, OMEGA and SIGMA state: correlated draws around the estimates from a COV file, or rows of a --param-file (bootstrap, SIR or posterior samples). States that violate the bounds or positive definiteness are redrawn a limited number of times.

Read more: 28.22 Parameter uncertainty from covariance or empirical rows.

F.6.10 What is the difference between generate and simulate-study?

generate creates one complete project: a design, the known truth when the data are synthetic, simulated or supplied data, control streams and settings for later commands. simulate-study repeats a generate–fit–analyse cycle with a known truth, to measure the operating characteristics of the covariate methods (sensitivity, false-positive rate, recovery). One or two replicates say nothing about a rate.

Read more: 29.1 Choosing generate or simulate-study; 41.31 Case 7: four generated projects, a known truth and a design to review; 41.32 Case 7: a covariate method tested on known truth, with too few replicates.

F.6.11 Should I use power --method fim or sse?

Start with fim: it screens a design in seconds from the Fisher information and validates the inputs and the grid. Add sse (stochastic simulation and estimation, which re-estimates virtual trials) when you need an empirical power, a type-I error or a check of the approximation. both writes comparable views. The two can differ, and Chapter 41 shows a case in which the information-based and the simulated sample sizes are not the same.

Read more: 31.1 Quick start: a first power run; 30.7 Stochastic simulation and estimation; 30.16 Fisher information intuition; 41.33 Case 7: how many subjects, from the Fisher information; 41.34 Case 7: power by simulation and estimation, and what the formula missed.

F.6.12 How does the power calculation turn information into a sample size?

For a one-parameter hypothesis it computes the noncentrality from the true-minus-null effect and the information variance, takes the power from a noncentral chi-square, and uses the proportionality of information to N. For one degree of freedom, α = 0.05 and a target power of 0.80, the required noncentrality is about 7.849. Allocation limits can make the next feasible N larger than the simple ceiling.

Read more: 30.23 Wald power and sample-size scaling; 30.24 Worked hand calculation: 44 subjects.

F.6.13 How many sample sizes should I put in the grid?

At least three useful sizes around the expected crossing for SSE, because SSE interpolates observed points and a coarse or noisy grid can give a misleading crossing or only not reached. The list accepts commas, spaces or semicolons, is sorted and de-duplicated, and defaults to the template's subject count.

Read more: 31.8 Sample sizes and bracketing the crossing; 31.7 How the scenario grid multiplies.

F.6.14 What is the difference between dropout and missingness in power?

Dropout selects a fraction of subjects who leave at a uniform time between their first and last observation, and later records are removed. Missingness removes observation records at random, independently. Both rates are in [0, 1), and a subject with no remaining observation is excluded from that virtual trial.

Read more: 31.10 Dropout and intermittent missing observations; 30.25 Dropout, missingness, and compliance.

F.6.15 How do I run a first er analysis?

One endpoint and one exposure: nlmx er DATASET --exposure AUC --response CHG --group ARM --placebo Placebo -o er_out. Placebo values receive the placebo exposure (zero by default) regardless of their exposure cell, and active subjects with missing or non-positive exposure are excluded by default.

Read more: 33.1 The command map and your first run; 33.4 Dose groups, placebo, and exposure eligibility; 33.2 Dataset format, identifiers, and row grain.

F.6.16 Which endpoints does er handle, and how is the effect of exposure expressed?

Continuous, binary, ordinal, count, time-to-event and longitudinal endpoints. effect_per defines the from/to exposure (the active interquartile range, one unit, one standard deviation, doubling, or a numeric increment) and the output is a difference for a continuous endpoint, or an odds, rate or hazard ratio otherwise. The effect against placebo and the effect between active exposures are different questions.

Read more: 33.10 Effect contrasts and predictions at useful exposures; 33.13 Binary, ordinal, count, TTE, and longitudinal controls; Chapter 32 — Exposure-response concepts and models; 41.35 Case 8: one exposure, three endpoint types.

Review checklist

  • Do you choose the predictive check from the question and the design?
  • Do you use enough replicates before you decide?
  • Do you start power planning with fim and confirm with sse?
  • Do you keep the effect against placebo apart from the effect between active exposures?

See the previous page, the next page, the overview, and the complete FAQ reference.