# nlmx report (frozen engine) — run22 covariate analysis

Command: `nlmx cov --model-dir C:\Users\askph\Desktop\PROJECTS\RUST\CovariateAnalysis\nlmx-book\documents\ch22\results\base_fit --run-stem run22 --covariates 'CL=WT,EGFR,SEX;V=WT,SEX' --method frozen --seed 22048 --output C:\Users\askph\Desktop\PROJECTS\RUST\CovariateAnalysis\nlmx-book\documents\ch22\results\frozen --no-color --suppress-console 1`

Engine: `nlmx 4.8.0`

## Result

Final covariate model (joint refit: OFV -1123.325, 40.76 below the base model's -1082.561):

```
V = TVV × (WT/72.2)^0.9975
```

| parameter ~ covariate | equation | decision | reason |
|---|---|---|---|
| CL~WT | power | **uncertain** | univariate adjusted p 9.159e-6 is significant or borderline but the relationship was not kept conditionally (a correlated competitor may explain the same signal) |
| CL~EGFR | power | **uncertain** | univariate adjusted p 3.523e-4 is significant or borderline but the relationship was not kept conditionally (a correlated competitor may explain the same signal) |
| CL~SEX | proportional | **rejected** | univariate adjusted p 9.466e-1 >= 0.1 and not selected conditionally |
| V~WT | power | **retained** | selected at forward step 1 (conditional p 7.199e-11 < 0.05) and kept by the backward check (p 7.199e-11 < 0.01) |
| V~SEX | proportional | **rejected** | univariate adjusted p 9.466e-1 >= 0.1 and not selected conditionally |

## Equations tried

Each equation was refitted against the base model when the equations were compared by refits; per parameter-covariate pair the lowest AIC is chosen, preferring the equation listed first when it is within 2 AIC units.

| pair | type | form | equation | OFV | ΔOFV | df | ΔAIC | estimate | chosen |
|---|---|---|---|---:|---:|---:|---:|---|:-:|
| CL~WT | continuous | power | `(WT/72.2)^θ` | – | – | 1 | – | `(WT/72.2)^1.027` | ✓ |
| CL~EGFR | continuous | power | `(EGFR/93.62)^θ` | – | – | 1 | – | `(EGFR/93.62)^0.7286` | ✓ |
| CL~SEX | binary | proportional | `(1 + θ if SEX = 1)` | – | – | 1 | – | `(1 + 0.005121 if SEX = 1)` | ✓ |
| V~WT | continuous | power | `(WT/72.2)^θ` | – | – | 1 | – | `(WT/72.2)^1.433` | ✓ |
| V~SEX | binary | proportional | `(1 + θ if SEX = 1)` | – | – | 1 | – | `(1 + 0.00946 if SEX = 1)` | ✓ |

## Identity and inputs

```
Analysis           : run22 covariate analysis
Method             : frozen
Configuration      : C:\Users\askph\Desktop\PROJECTS\RUST\CovariateAnalysis\nlmx\nlmx.covar
Run stem           : run22 (input mode: directory)
Control stream     : C:\Users\askph\Desktop\PROJECTS\RUST\CovariateAnalysis\nlmx-book\documents\ch22\results\base_fit\run22.ctl
Problem            : Chapter 22 covariate-method example
Subroutine         : ADVAN2 TRANS2
Dataset            : C:\Users\askph\Desktop\PROJECTS\RUST\CovariateAnalysis\nlmx-book\documents\ch22\results\base_fit\../../input/analysis.csv (540 rows used, 0 filtered, 480 observations, 60 subjects)
Model (detected)   : ADVAN2 TRANS2: one compartment with first-order absorption; 4 THETA, 2 ETA, 1 EPS
Estimation         : $ESTIMATION METHOD=1 -> nlmx evaluates foce_i
Residual error     : from $ERROR/$PRED: EPS[1] with non-zero SIGMA
OFV in .ext        : -1082.5610
Random effects     : ETA[1, 2]
Frozen parameters  : 6 (THETA(1), THETA(2), THETA(3), THETA(4), OMEGA(1,1), OMEGA(2,2))
ETA estimates      : from .phi
Frozen engine      : foce_i approximation, efficient information (opg estimator, nuisance: observed), selection hierarchical_conditional, multiplicity bh

Detected parameters (from the control stream):
  CL       ETA 1    exponential   THETA [1]          typical 4.12873      basic PK parameter
  V        ETA 2    exponential   THETA [2]          typical 44.26899     basic PK parameter
  KA       ETA -    none          THETA [3]          typical 1.18714      basic PK parameter

Diagnostics:
  - covariate `WT`: continuous (detected; 60 distinct values, 45.02 to 104.6) — equations: power
  - covariate `EGFR`: continuous (detected; 60 distinct values, 56.34 to 142.1) — equations: power
  - covariate `SEX`: binary (detected; levels 0, 1; reference 0) — equations: proportional
  - likelihood approximation: foce_i (from $ESTIMATION METHOD=1)
  - base-parameter covariance: 6 parameter(s), condition number 6.038e4
  - maximum |cor(.cov) - .cor| discrepancy = 2.183e-7
  - .phi parsed: 60 subject(s), ETA[1, 2], ETC columns present
  - information: opg estimator; nuisance block from nlmx's own likelihood

Candidate scope:
  CL~WT:power                    status=test           df=1 reference=72.2047
  CL~EGFR:power                  status=test           df=1 reference=93.6222
  CL~SEX:proportional            status=test           df=1 reference=0.0000
  V~WT:power                     status=test           df=1 reference=72.2047
  V~SEX:proportional             status=test           df=1 reference=0.0000
```

## Statistical configuration

- Approximation: **foce_i**
- Information: **efficient**, estimator **opg** (nuisance block from **observed**)
- Selection: **hierarchical_conditional**
- Multiplicity: **bh** (forward alpha 0.05, retention alpha 0.01)
- Uncertainty propagation: **enabled** (200 draws, seed 22048, linearized)

Base-solution stationarity: U_n' I_nn^-1 U_n = **0.000** on 6 df. Values near the degrees of freedom mean the NONMEM estimates are close to an optimum of nlmx's likelihood; much larger values point to an approximation mismatch or a parameter-map error. The efficient score is corrected for it either way.

## Candidate results

| candidate | S (univ) | df | p (univ) | p (adj) | S (cond) | p (cond) | step | beta | SE | pass prob. | class |
|---|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:|---|
| `V~WT:power` | 42.464 | 1 | 7.199e-11 | 3.599e-10 | 42.464 | 7.199e-11 | 1 | 1.43302 | 0.21991 | 0.97 | **retained** |
| `CL~WT:power` | 21.433 | 1 | 3.664e-6 | 9.159e-6 | 6.018 | 1.416e-2 | – | 1.02697 | 0.22183 | 1.00 | **uncertain** |
| `CL~EGFR:power` | 13.727 | 1 | 2.114e-4 | 3.523e-4 | 5.575 | 1.822e-2 | – | 0.72861 | 0.19666 | 0.99 | **uncertain** |
| `V~SEX:proportional` | 0.015 | 1 | 9.020e-1 | 9.466e-1 | 2.272 | 1.317e-1 | – | 0.00946 | 0.07680 | 0.29 | **rejected** |
| `CL~SEX:proportional` | 0.004 | 1 | 9.466e-1 | 9.466e-1 | 0.043 | 8.348e-1 | – | 0.00512 | 0.07646 | 0.36 | **rejected** |

## Decisions

### retained (1)

- `V~WT:power` — selected at forward step 1 (conditional p 7.199e-11 < 0.05) and kept by the backward check (p 7.199e-11 < 0.01)
  - draft: `TVV = TVV * (WT/72.2047)**0.9975   ; UNCONFIRMED nlmx draft`

### uncertain (2)

- `CL~WT:power` — backward: dropped `CL~WT:power` (conditional p = 1.416e-2 >= retention alpha 0.01); univariate adjusted p 9.159e-6 is significant or borderline but the relationship was not kept conditionally (a correlated competitor may explain the same signal)
- `CL~EGFR:power` — backward: dropped `CL~EGFR:power` (conditional p = 1.822e-2 >= retention alpha 0.01); univariate adjusted p 3.523e-4 is significant or borderline but the relationship was not kept conditionally (a correlated competitor may explain the same signal)

### rejected (2)

- `CL~SEX:proportional` — univariate adjusted p 9.466e-1 >= 0.1 and not selected conditionally
- `V~SEX:proportional` — univariate adjusted p 9.466e-1 >= 0.1 and not selected conditionally

## Selection trace

- base-solution stationarity: U_n' I_nn^-1 U_n = 0.000 on 6 df (approximate OFV that re-estimating the frozen parameters would gain in this engine's likelihood); largest standardised components: OMEGA(1,1) -0.00, THETA(1) -0.00, THETA(4) -0.00
- step 1: selected `V~WT:power` (conditional p = 7.199e-11, S = 42.464, one-step beta = [1.43302])
- step 2: selected `CL~WT:power` (conditional p = 1.416e-2, S = 6.018, one-step beta = [0.58360])
- step 3: selected `CL~EGFR:power` (conditional p = 1.822e-2, S = 5.575, one-step beta = [0.52261])
- step 4: best remaining candidate `V~SEX:proportional` has conditional p = 1.317e-1 >= 0.05 — stopping
- backward: dropped `CL~EGFR:power` (conditional p = 1.822e-2 >= retention alpha 0.01)
- backward: dropped `CL~WT:power` (conditional p = 1.416e-2 >= retention alpha 0.01)
- final model refit: OFV -1123.3253; coefficients [0.99751]

## Diagnostics

- covariate `WT`: continuous (detected; 60 distinct values, 45.02 to 104.6) — equations: power
- covariate `EGFR`: continuous (detected; 60 distinct values, 56.34 to 142.1) — equations: power
- covariate `SEX`: binary (detected; levels 0, 1; reference 0) — equations: proportional
- likelihood approximation: foce_i (from $ESTIMATION METHOD=1)
- base-parameter covariance: 6 parameter(s), condition number 6.038e4
- maximum |cor(.cov) - .cor| discrepancy = 2.183e-7
- .phi parsed: 60 subject(s), ETA[1, 2], ETC columns present
- information: opg estimator; nuisance block from nlmx's own likelihood
- Subjects without a converged conditional mode: 0
- Subject-level likelihood evaluations: 4980
- Full run transcript: `C:\Users\askph\Desktop\PROJECTS\RUST\CovariateAnalysis\nlmx-book\documents\ch22\results\frozen\log_7790463646.txt`

## Limitations

- Results are **frozen-model efficient-score recommendations**. The base model was not re-estimated and equivalence with NONMEM SCM has not been established for this model class.
- One-step coefficients are local (one Newton step from beta = 0), not maximum-likelihood estimates from a refitted model; large effects are typically over- or under-stated.
- Conditional selection keeps the frozen parameters at their final estimates; only candidate directions are decorrelated.
- The likelihood is a Laplace (or FO) approximation evaluated by nlmx, not NONMEM's own objective.
- Every candidate retained here must be confirmed by an explicit NONMEM fit before it is used for inference or submission.
