Documentation

F.4 autoinit, screen and fit

F.4 autoinit, screen and fit: figure of the topics covered

What you will learn

  • Find a short, checked answer to 17 common questions about building and fitting the model.
  • 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 16, Chapter 17 and Chapter 20 are helpful.

Initial estimates, structural screening and estimation, with the questions that come up when a fit does not converge, has no standard errors or needs a retry.

Commands named on this page: autoinit, screen, fit.

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 17 questions on this page

  1. What does autoinit do, and how are its three methods combined?
  2. The three methods disagree. What do I do?
  3. Why does autoinit choose KA > CL/V?
  4. How do I use init_blocks.txt?
  5. How does screen choose a recommended structure?
  6. A model with a lower objective was not recommended. Why?
  7. Which method does fit use, and what does it read?
  8. Which estimation method should I choose: FO, FOCE, FOCE-I, Laplace or SAEM?
  9. Can I compare the objective values of two methods?
  10. My fit stopped at the iteration limit, but the estimates look fine. Can I use them?
  11. What is the first thing to do about a nonconverged fit?
  12. There are no standard errors. Is the fit broken?
  13. What does --retry do, and which failures does it retry?
  14. After a retry, which folder holds the result?
  15. Can I fit many control streams in one command?
  16. How should I read shrinkage?
  17. How do I decide whether a model is good enough?

Answers

F.4.1 What does autoinit do, and how are its three methods combined?

It derives initial estimates from the dataset alone with three methods: NCA, individual nonlinear least squares and a machine-learning neighbour search. With method = "auto" it runs every method the data support and recommends a value, usually a geometric mean because pharmacokinetic parameters are positive and the differences are multiplicative. With clear two-compartment evidence the combination follows different rules. The individual method columns are kept so a reviewer can see them.

Read more: 16.7 Three methods and the recommendation rule; 16.8 The autoinit NCA method; 16.9 The individual NLS method; 16.11 Machine-learning neighbours and shrinkage correction.

F.4.2 The three methods disagree. What do I do?

Treat the disagreement as a diagnostic and work upstream before replacing a value. Check units and scale first (a 1000-fold CL/V discrepancy is usually scaling), then dose records, route, infusion duration and filters. Then ask whether NCA has weak terminal support, whether the sparse design hurts the individual fits, and whether a two-compartment profile confuses the one-compartment family. Write a short disposition for each discrepancy.

Read more: 16.26 Troubleshooting method disagreement and poor starts.

F.4.3 Why does autoinit choose KA > CL/V?

With one-compartment oral data and no intravenous data, exchanging KA and the elimination rate gives the same curve (flip-flop). autoinit takes the conventional branch KA > CL/V. That is a convention, not proof that absorption is faster than elimination; intravenous data or prior knowledge resolve it.

Read more: 16.18 KA, ALAG, and flip-flop ambiguity.

F.4.4 How do I use init_blocks.txt?

It holds ready-to-paste $THETA, $OMEGA and $SIGMA blocks. Read the page on using it safely first: check the parameter order and scaling against your control stream, and confirm the initial predictions before fitting.

Read more: 16.25 Using init_blocks.txt safely; 16.22 initial_estimates.csv and parameter sources.

In three stages: eligibility first (convergence, covariance and RSE rules), then the predeclared criterion (the smallest AIC, BIC or BICc, or the nested likelihood-ratio rule at the stated alpha), then an explanation that names the next-best model. When the difference is below about two, the models are practically close and the simpler or more stable one is preferred.

Read more: 17.22 Recommendation rule, ties, and passed-over models; 17.18 AIC, BIC, and corrected BICc; 17.19 Likelihood-ratio tests and nesting.

It was ineligible (for example nonconverged or ill-conditioned) and is reported as passed over, with its reasons. That is a trigger for targeted sensitivity work, not for quietly promoting it. If no candidate is eligible, the correct output is no recommendation and a recovery plan.

Read more: 17.22 Recommendation rule, ties, and passed-over models; 17.33 Troubleshooting failed, imprecise, and ineligible models.

F.4.7 Which method does fit use, and what does it read?

The method comes from $ESTIMATION; without one, FOCE-I is used. Initial values come from $THETA, $OMEGA and $SIGMA, the data from $DATA, and the covariance step runs when $COVARIANCE exists. The source control stream is never edited. Read the listing in order (problem, method, termination and gradient, objective, parameters, covariance, notes) before the estimates.

Read more: 20.2 Your first fit; 20.25 Reading the fit listing without missing a warning.

F.4.8 Which estimation method should I choose: FO, FOCE, FOCE-I, Laplace or SAEM?

Choose from the model's features, before you look at objectives. FOCE-I suits smooth conditional modes and moderate variability; Laplace suits general likelihood records; SAEM suits strong nonlinearity, sparse high-dimensional random effects and censored or user likelihoods, at a higher cost and with stochastic diagnostics. A common path is FOCE-I for exploration and SAEM as a sensitivity or final method when approximation risk is suspected.

Read more: 18.15 Comparing FO, FOCE, FOCE-I, and Laplace; 19.25 When to use SAEM instead of FOCE-I.

F.4.9 Can I compare the objective values of two methods?

No. FOCE-I and SAEM (whose reportable value comes from importance sampling) approximate the marginal likelihood differently, and the lowest number is not the best method. Compare parameter conclusions, diagnostics and validation evidence, and use a method-sensitivity table with identical data, starts and bounds.

Read more: 18.15 Comparing FO, FOCE, FOCE-I, and Laplace; 19.25 When to use SAEM instead of FOCE-I; 40.4 OFV, likelihood, approximation, and constants.

F.4.10 My fit stopped at the iteration limit, but the estimates look fine. Can I use them?

Not as a converged fit. In the controlled example, one iteration improved the objective but ended with a large gradient and the message iteration limit reached. To check a fixed set of estimates, start from the converged .ext with --start-from-ext and --max-iterations 0: the run evaluates the objective once and reproduces it. Do not cycle through settings until something prints successful.

Read more: 20.30 Evaluate-only runs, iteration limits, and rescue; 20.31 Nonconvergence, boundary estimates, and local optima.

F.4.11 What is the first thing to do about a nonconverged fit?

Classify it (iteration limit, large gradient, evaluation failure, invalid likelihood, singular random effects, covariance failure), then escalate in order: verify the data, event and model translation; verify units, initials, bounds and transformations; isolate the failing component with a simpler model; try several plausible starts; assess the covariance only after a stable minimisation; document any retained limitation.

Read more: 20.31 Nonconvergence, boundary estimates, and local optima; 39.11 Exit code 9: numerical or learner failure.

F.4.12 There are no standard errors. Is the fit broken?

First check whether the covariance step was requested: --no-cov-step leaves the standard errors and confidence intervals absent on purpose. If it was requested and failed, look for redundant fixed effects, highly correlated random effects, a variance near zero, a parameter at a bound or poor scaling. Do not report an RSE for a parameter effectively at zero, and do not conceal a singular matrix with a tiny artificial variance.

Read more: 20.32 Covariance failures, zero variances, and F_FLAG problems; 18.30 Boundaries and non-positive-definite matrices.

F.4.13 What does --retry do, and which failures does it retry?

--retry N (0 to 10, default 0) retries an estimation that stopped with a numerical error, hit the iteration limit, failed a line search or did not converge. The first retry starts from the autoinit estimates, and each further retry from those values perturbed at random by up to ±15 % (seeded). It does not retry a missing file, an invalid option, an unparsable control stream, an unsupported feature or invalid data, because another start cannot fix those.

Read more: 20.36 Retryable versus non-retryable failures; 20.37 Attempt zero and the retry handoff; 20.38 Retry 1: autoinit mapping into the submitted model; 20.39 Retries 2–N: random perturbations with guardrails.

F.4.14 After a retry, which folder holds the result?

Do not read the parent folder as the result: it is attempt 0, the fit from the submitted starting values, and it is never moved or overwritten. The alternatives are under retries/ (retry_01.ctl and a separate retry_01/ bundle), and the retries.csv ledger lists every attempt, with . meaning attempt 0. If attempt 0 converges, no retries/ folder is created, so --retry 3 is safe in a routine command.

Read more: 20.40 Retry folders, the attempt ledger, and provenance; 20.41 Reading retry outcomes and exit semantics; 41.16 Case 4: a fit that recovers, and what to check afterwards.

F.4.15 Can I fit many control streams in one command?

Yes, with --ctls and a pattern (file names, folders or wildcards such as *.ctl). fit runs once for each matching control stream, with all the other options, and every run has its own output folder and log.

Read more: 36.7 fit command reference; 38.12 fit retry, batch, and NONMEM-compatible artifacts.

F.4.16 How should I read shrinkage?

ETA shrinkage is 1 − SD(ETA-hat) / sqrt(OMEGA) for each random effect, and EPS shrinkage is 1 − SD(IWRES). High shrinkage means the individual estimates are pulled toward zero because the data are sparse or uninformative for that parameter. There is no universal threshold (20–30 % is often used as an attention level), the value is specific to a parameter and a design, and negative shrinkage should be investigated, not truncated.

Read more: 21.17 ETA and EPS shrinkage; 18.34 ETA and EPS shrinkage.

F.4.17 How do I decide whether a model is good enough?

Follow a repeatable chain for every diagnostic signal: observe, classify, hypothesise, test with the smallest controlled experiment, compare, and record a disposition (accept, revise, investigate the data, retain with a limitation, or reject). Negative findings belong in the audit trail.

Read more: 21.29 From a diagnostic finding to a model decision; 21.30 Complete diagnostic checklist and reporting template.

Review checklist

  • Do you read the termination state and the gradient before the estimates?
  • Do you choose the estimation method before you see the objectives?
  • Do you treat the parent folder of a retried fit as attempt 0?
  • Do you record a disposition for each diagnostic signal?

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