Documentation

8.7 Parameter mappings, compartments and scaling

TRANS converts basic PK parameters into micro-rate constants. nlmx validates that the required variables were assigned in $PK, accepting documented synonyms where implemented.

Common mappings

For ADVAN1/2 TRANS2:

\[ k_{10}=CL/V, \]

with KA additionally required for ADVAN2. Two-compartment TRANS4 uses

\[ k_{10}=CL/V_c,\quad k_{12}=Q/V_c,\quad k_{21}=Q/V_p. \]

ADVAN3 names the central volume V1 and peripheral V2; ADVAN4 includes a depot, so central is commonly V2 and peripheral V3. Accepted V synonyms are recorded as notes when they differ from the primary expected name.

TRANS3 uses VSS and computes the peripheral volume as VSS - V; invalid or near-degenerate values can yield invalid rates. TRANS5/6 use macro/eigenvalue parameters and are inverted to the same micro-rate system. Three-compartment TRANS4 uses Q2/V2 and Q3/V3 conventions appropriate to ADVAN11/12 numbering.

Compartment scaling

The engine stores amounts. Prediction F is the selected compartment amount divided by its Sn scale; the output compartment uses S(n+1) or SO. In concentration models, set the central scale to its volume:

S2 = V     ; ADVAN2 central is compartment 2

Omitting or misnumbering the scale can produce amount predictions with otherwise plausible time profiles.

Compartment modifiers

For each compartment, $PK variables can supply:

  • Fn: bioavailability, default 1;
  • ALAGn: lag, default 0;
  • Rn: modelled infusion rate for RATE=-1;
  • Dn: modelled duration for RATE=-2;
  • Sn: observation scale, default 1.

These values are evaluated record by record and can depend on ETA or covariates.

Common mistakes

  • Applying S1=V to an absorption model whose central compartment is 2.
  • Assuming VSS is the peripheral volume.
  • Comparing macro parameters without verifying TRANS inversion.

Checklist

  • Derive the micro rates independently.
  • Confirm compartment numbering and scale variables.
  • Check every accepted synonym note.

Further reading

See ADVAN support, dose modifiers and the worked comparison.