Every component here is shared: any post can use it. Units are shown on every parameter and axis, colours come from the design tokens so everything follows the light and dark themes, and interactive pieces load their JavaScript only when they scroll into view. All data on this page is illustrative.

Content

Written straight into a post's MDX; no import needed.

Callout

An aside: a note (the default), a tip or a warning, with an optional title. Add class="wide" to span the wide column.

Note

A note: the peak time does not depend on dose.

Shortcut

Press / to search the site.

Check your units

NONMEM does not track units. If the dose is in mg and V in L, set S2 = V.
<Callout>A note: the peak time does not depend on dose.</Callout>
<Callout type="tip" title="Shortcut">Press / to search the site.</Callout>
<Callout type="warning" title="Check your units">
NONMEM does not track units. If the dose is in mg and $V$ in L, set `S2 = V`.
</Callout>

Figure

An image with a caption, numbered automatically and lazy-loaded at responsive sizes. alt is required; variant is default, wide or full.

Line chart of concentration (mg/L) against time (h) from 0 to 24 h. Concentration rises steeply to a peak of 1.60 mg/L at 2.2 h, then declines smoothly to about 0.2 mg/L at 24 h.
Concentration after a single 100 mg oral dose (ka = 1.2 1/h, CL = 5 L/h, V = 50 L), rendered in R.
import bateman from './bateman.png';
<Figure
src={bateman}
alt="Concentration rises steeply to a peak of 1.60 mg/L at 2.2 h, then declines to about 0.2 mg/L at 24 h."
>
Concentration after a single 100 mg oral dose ($k_a$ = 1.2 1/h, $CL$ = 5 L/h, $V$ = 50 L).
</Figure>

Static charts

Drawn to SVG when the site is built: no JavaScript, and they still follow the theme. Use these unless the reader can do something with the chart.

StaticChart, ready-made

A named chart (concentration-time, obs-pred, vpc or forest) from data in the post folder. table adds the numbers under “View data”.

0.00.20.40.60.81.01.21.4↑ Concentration (mg/L)024681012141618202224Time (h) →
View data
SeriesTime (h)Concentration (mg/L)
100 mg00
100 mg0.50.878
100 mg11.317
100 mg1.51.517
100 mg21.588
100 mg2.51.591
100 mg31.557
100 mg3.51.505
100 mg41.445
100 mg4.51.381
100 mg51.318
100 mg5.51.256
100 mg61.196
100 mg6.51.138
100 mg71.083
100 mg7.51.03
100 mg80.98
100 mg8.50.932
100 mg90.887
100 mg9.50.844
100 mg100.803
100 mg10.50.763
100 mg110.726
100 mg11.50.691
100 mg120.657
100 mg12.50.625
100 mg130.595
100 mg13.50.566
100 mg140.538
100 mg14.50.512
100 mg150.487
100 mg15.50.463
100 mg160.441
100 mg16.50.419
100 mg170.399
100 mg17.50.379
100 mg180.361
100 mg18.50.343
100 mg190.326
100 mg19.50.31
100 mg200.295
100 mg20.50.281
100 mg210.267
100 mg21.50.254
100 mg220.242
100 mg22.50.23
100 mg230.219
100 mg23.50.208
100 mg240.198
Concentration after a single 100 mg oral dose.
import profile from './profile.json';
<StaticChart
kind="concentration-time"
data={profile}
options={{ timeUnit: 'h', concUnit: 'mg/L' }}
alt="Concentration rises to a peak of 1.6 mg/L at about 2 h, then declines to 0.2 mg/L at 24 h."
table
>
Concentration after a single 100 mg oral dose.
</StaticChart>

StaticChart, custom spec

Any other chart: a spec function that returns Plot options, built with themedPlot, chrome, categorical and axisLabel from src/lib/charts.

2345678910↑ Clearance (L/h)50 mg100 mg200 mgDose group
Individual clearances by dose group; ticks mark the medians.
import { clearanceLinear } from './clearanceSpec';
import clearances from './clearances.csv';
<StaticChart
spec={clearanceLinear}
data={clearances}
alt="Individual clearance estimates in three dose groups, with similar medians."
>
Individual clearances by dose group; ticks mark the medians.
</StaticChart>
clearanceSpec.ts
import * as Plot from '@observablehq/plot';
import {
axisLabel,
axisLengths,
axisScale,
categorical,
chrome,
themedPlot,
type SpecBuilder,
} from '../../../lib/charts';
/** A row of clearances.csv. */
export interface ClearanceRow {
/** Dose group, e.g. `50 mg`. */
group: string;
/** Individual clearance estimate (L/h). */
cl: number;
}
/**
* A custom chart: individual clearances as dots, one column per dose group, with each
* group's median as a tick. Colours, gridlines and labels come from the chart theme.
*/
export function clearanceSpec(log: boolean): SpecBuilder<readonly ClearanceRow[]> {
return (data, ctx) => {
const groups = [...new Set(data.map((d) => d.group))];
return themedPlot(
{
x: { label: 'Dose group', domain: groups, padding: 0.4 },
y: { label: axisLabel('Clearance', 'L/h'), ...axisScale(log), nice: true },
color: categorical(groups),
marks: [
// A log axis is drawn by chrome(), which needs its length to space the ticks.
...chrome({ y: true, ...(log ? { log: { y: axisLengths(ctx).y } } : {}) }),
Plot.dot(data, { x: 'group', y: 'cl', fill: 'group', r: 4, fillOpacity: 0.85 }),
Plot.tickY(
data,
Plot.groupX({ y: 'median' }, { x: 'group', y: 'cl', strokeWidth: 2, stroke: 'group' }),
),
],
},
ctx,
);
};
}
/** Built once at module scope: `PlotChart` redraws whenever a spec's identity changes. */
export const clearanceLinear = clearanceSpec(false);
export const clearanceLog = clearanceSpec(true);

Chart islands

React charts that are redrawn to fit their container. Each needs ariaLabel, a text alternative; showTable adds the data as a table.

ConcentrationTimeChart

One line per series, labelled where it ends, with a linear/log toggle for the concentration axis.

View data
SeriesTime (h)Concentration (mg/L)
100 mg00
100 mg0.50.878
100 mg11.317
100 mg1.51.517
100 mg21.588
100 mg2.51.591
100 mg31.557
100 mg3.51.505
100 mg41.445
100 mg4.51.381
100 mg51.318
100 mg5.51.256
100 mg61.196
100 mg6.51.138
100 mg71.083
100 mg7.51.03
100 mg80.98
100 mg8.50.932
100 mg90.887
100 mg9.50.844
100 mg100.803
100 mg10.50.763
100 mg110.726
100 mg11.50.691
100 mg120.657
100 mg12.50.625
100 mg130.595
100 mg13.50.566
100 mg140.538
100 mg14.50.512
100 mg150.487
100 mg15.50.463
100 mg160.441
100 mg16.50.419
100 mg170.399
100 mg17.50.379
100 mg180.361
100 mg18.50.343
100 mg190.326
100 mg19.50.31
100 mg200.295
100 mg20.50.281
100 mg210.267
100 mg21.50.254
100 mg220.242
100 mg22.50.23
100 mg230.219
100 mg23.50.208
100 mg240.198
200 mg00
200 mg0.51.756
200 mg12.634
200 mg1.53.035
200 mg23.177
200 mg2.53.181
200 mg33.113
200 mg3.53.01
200 mg42.889
200 mg4.52.763
200 mg52.636
200 mg5.52.512
200 mg62.392
200 mg6.52.276
200 mg72.166
200 mg7.52.061
200 mg81.96
200 mg8.51.865
200 mg91.774
200 mg9.51.688
200 mg101.605
200 mg10.51.527
200 mg111.453
200 mg11.51.382
200 mg121.314
200 mg12.51.25
200 mg131.189
200 mg13.51.131
200 mg141.076
200 mg14.51.024
200 mg150.974
200 mg15.50.926
200 mg160.881
200 mg16.50.838
200 mg170.797
200 mg17.50.758
200 mg180.721
200 mg18.50.686
200 mg190.653
200 mg19.50.621
200 mg200.591
200 mg20.50.562
200 mg210.534
200 mg21.50.508
200 mg220.484
200 mg22.50.46
200 mg230.437
200 mg23.50.416
200 mg240.396
Doubling the dose doubles the concentration at every time. On the log scale the curves are parallel.
import ConcentrationTimeChart from '../../../components/charts/ConcentrationTimeChart.tsx';
import profiles from './profiles.json';
<ConcentrationTimeChart
client:visible
data={profiles}
timeUnit="h"
concUnit="mg/L"
showTable
ariaLabel="Concentration–time curves after 100 mg and 200 mg oral doses. The 200 mg curve is twice as high at every time."
>
Doubling the dose doubles the concentration at every time. On the log scale the curves are parallel.
</ConcentrationTimeChart>

ObsPredChart

Observations against predictions on equal axes, with the line of identity.

Observations against population predictions. The line is y = x.
import ObsPredChart from '../../../components/charts/ObsPredChart.tsx';
import gof from './gof.csv';
<ObsPredChart
client:visible
data={gof}
unit="mg/L"
predLabel="Population prediction"
ariaLabel="Observed against population-predicted concentrations, scattered evenly about the line of identity."
>
Observations against population predictions. The line is $y = x$.
</ObsPredChart>

VpcChart

A visual predictive check from pre-computed percentiles: simulated intervals as bands, observed percentiles as lines.

Observed percentiles (lines) against 95% intervals of the simulated percentiles (bands).
import VpcChart from '../../../components/charts/VpcChart.tsx';
import vpc from './vpc.csv';
<VpcChart
client:visible
data={vpc}
timeUnit="h"
concUnit="ng/mL"
yScale="log"
ariaLabel="Visual predictive check: the observed 5th, 50th and 95th percentiles fall inside the simulated intervals at every time."
>
Observed percentiles (lines) against 95% intervals of the simulated percentiles (bands).
</VpcChart>

ForestPlot

Point estimates with intervals, top to bottom, against a reference line and an optional band.

View data
AUC ratio to referenceLowerUpper
Weight 50 kg1.241.121.38
Weight 100 kg0.810.730.9
Mild renal impairment1.120.981.27
Moderate renal impairment1.411.181.69
Taken with food0.930.851.02
Ratios of AUC to a 70 kg adult with normal renal function, with 90% confidence intervals. The band is 0.8–1.25.
import ForestPlot from '../../../components/charts/ForestPlot.tsx';
import covariates from './covariates.csv';
<ForestPlot
client:visible
data={covariates}
xLabel="AUC ratio to reference"
band={[0.8, 1.25]}
log
showTable
ariaLabel="Covariate effects on AUC. Weight and moderate renal impairment fall outside 0.8 to 1.25; the others overlap it."
>
Ratios of AUC to a 70 kg adult with normal renal function, with 90% confidence intervals.
The band is 0.8–1.25.
</ForestPlot>

PlotChart

The frame the charts above are built on: any spec, redrawn on resize and theme change, with an optional toolbar. It takes a function, so use it inside your own island.

Clearance does not change with dose: the medians (ticks) are level across the groups.
PlotChartExample.tsx
import { useState } from 'react';
import PlotChart from '../../../components/charts/PlotChart';
import Toggle from '../../../components/controls/Toggle';
import { clearanceLinear, clearanceLog } from './clearanceSpec';
import clearances from './clearances.csv';
export default function PlotChartExample() {
const [log, setLog] = useState(false);
return (
<PlotChart
spec={log ? clearanceLog : clearanceLinear}
data={clearances}
ariaLabel="Individual clearance estimates in three dose groups, 2.6 to 9.8 L/h, with similar medians in each group."
toolbar={
<div className="chart-toolbar">
<Toggle label="Log clearance axis" checked={log} onChange={setLog} />
</div>
}
>
Clearance does not change with dose: the medians (ticks) are level across the groups.
</PlotChart>
);
}

Controls

Native form elements: labelled, keyboard-operable, with a visible focus ring. They take callbacks, so they live inside an island; the code shown is each example's own source.

Slider

A range input with its unit and a formatted readout, on a linear or log track.

SliderExample.tsx
import { useState } from 'react';
import Slider from '../../../components/controls/Slider';
export default function SliderExample() {
const [cl, setCl] = useState(5);
const [v, setV] = useState(50);
return (
<div>
{/* Log scale: equal track distances are equal ratios (needs min > 0). */}
<Slider label="CL" unit="L/h" value={cl} onChange={setCl} min={0.5} max={50} scale="log" />
<Slider label="V" unit="L" value={v} onChange={setV} min={5} max={200} step={1} />
</div>
);
}

NumberInput

A number field with its unit. Entries out of range are flagged, then clamped on blur.

10 to 1000 mg
NumberInputExample.tsx
import { useState } from 'react';
import NumberInput from '../../../components/controls/NumberInput';
export default function NumberInputExample() {
const [dose, setDose] = useState(100);
// An entry outside 10–1000 is flagged while typing and clamped on blur.
return (
<NumberInput
label="Dose"
unit="mg"
value={dose}
onChange={setDose}
min={10}
max={1000}
step={10}
/>
);
}

Toggle

An on/off switch: a checkbox with the switch role, so Space toggles it.

Showing a single dose

ToggleExample.tsx
import { useState } from 'react';
import Toggle from '../../../components/controls/Toggle';
export default function ToggleExample() {
const [steadyState, setSteadyState] = useState(false);
return (
<div>
<Toggle label="Steady state" checked={steadyState} onChange={setSteadyState} />
<p className="param-readout" aria-live="polite">
{steadyState ? 'Showing steady state' : 'Showing a single dose'}
</p>
</div>
);
}

Select

A drop-down of typed options, with an optional unit.

SelectExample.tsx
import { useState } from 'react';
import Select from '../../../components/controls/Select';
// `as const` keeps the values as a union type: `tau` is '8' | '12' | '24'.
const INTERVALS = [
{ value: '8', label: '8' },
{ value: '12', label: '12' },
{ value: '24', label: '24' },
] as const;
export default function SelectExample() {
const [tau, setTau] = useState<(typeof INTERVALS)[number]['value']>('12');
return (
<Select label="Dosing interval" unit="h" value={tau} onChange={setTau} options={INTERVALS} />
);
}

ParameterPanel and useParameters

Sliders and number fields drawn from a schema, with reset. useParameters returns typed values and can keep changed ones in the page address.

Model parameters
10 to 1000 mg

ka = 1.2 1/h, CL = 5 L/h, V = 50 L, Dose = 100 mg

ParameterPanelExample.tsx
import { defineParams, formatValue, withUnit } from '../../../lib/controls';
import ParameterPanel from '../../../components/controls/ParameterPanel';
import { useParameters } from '../../../components/controls/useParameters';
// At module scope. Every entry needs a unit; `control: 'number'` gives a number field.
const schema = defineParams([
{ name: 'ka', label: 'ka', unit: '1/h', min: 0.1, max: 5, default: 1.2, scale: 'log' },
{ name: 'CL', label: 'CL', unit: 'L/h', min: 0.5, max: 50, default: 5, scale: 'log' },
{ name: 'V', label: 'V', unit: 'L', min: 5, max: 200, default: 50, step: 1 },
{
name: 'dose',
label: 'Dose',
unit: 'mg',
min: 10,
max: 1000,
default: 100,
step: 10,
control: 'number',
},
]);
export default function ParameterPanelExample() {
// urlSync keeps changed values in the address (?lab-CL=7.5); reset clears them.
const { values, setValue, reset } = useParameters(schema, { urlSync: true, urlPrefix: 'lab-' });
return (
<div>
<ParameterPanel
schema={schema}
values={values}
onChange={setValue}
onReset={reset}
legend="Model parameters"
/>
<p className="param-readout">
{schema
.map((p) => `${p.label} = ${withUnit(formatValue(values[p.name]), p.unit)}`)
.join(', ')}
</p>
</div>
);
}

Scrollytelling

A graphic that stays in view while the steps scroll past, redrawn for the step being read: here, repeated oral doses of 100 mg every 12 h.

Scrolly and Step

Steps are written in MDX with <Step>; the graphic is a function of the active step, supplied by a small island that wraps Scrolly.

Repeated oral doses of 100 mg every 12 h. Dotted vertical lines mark the doses given so far.

Dose 1. The first 100 mg dose peaks at 1.60 mg/L at about 2.3 h. By 12 h the concentration has fallen to 0.66 mg/L, not to zero.

Dose 2. The second dose lands on what is left of the first. The curves add, so the peak rises to 2.13 mg/L and the trough at 24 h to 0.86 mg/L.

Dose 3. Each dose adds less than the one before, because less of the earlier doses remains. The peak is now 2.29 mg/L.

Dose 4. The peak is 2.34 mg/L and the trough 0.93 mg/L: hard to tell from the interval before.

Dose 5. After 48 h, about seven half-lives, each interval eliminates nearly a whole dose: peak 2.35 mg/L, trough 0.94 mg/L.

Steady state. The curve settles between a peak of 2.36 mg/L and a trough of 0.94 mg/L, the dashed lines.

ScrollyDemo.tsx
import type { ReactNode } from 'react';
import type { SpecBuilder } from '../../lib/charts';
import PlotChart from '../charts/PlotChart';
import Scrolly from './Scrolly';
import { DEMO_REGIMEN, buildUpLabel, buildUpSpec } from './scrollyDemoData';
// Module scope: PlotChart redraws whenever the builder's identity changes.
const spec: SpecBuilder<number> = (step, ctx) => buildUpSpec(step, ctx);
/**
* Scrollytelling demo: a concentration–time curve that builds up dose by dose. The steps are
* the children, written in the post with `<Step>`; there is one per dose, then one more that
* adds the steady-state peak and trough.
*/
export default function ScrollyDemo({ children }: { children?: ReactNode }) {
return (
<Scrolly
graphic={(active) => (
<PlotChart spec={spec} data={active} ariaLabel={buildUpLabel(active)}>
Repeated oral doses of {DEMO_REGIMEN.dose} mg every {DEMO_REGIMEN.tau} h. Dotted vertical
lines mark the doses given so far.
</PlotChart>
)}
>
{children}
</Scrolly>
);
}
index.mdx
import ScrollyDemo from './ScrollyDemo.tsx';
<ScrollyDemo client:visible>
<Step>**Dose 1.** The first 100 mg dose peaks at 1.60 mg/L …</Step>
<Step>**Dose 2.** The second dose lands on what is left of the first …</Step>
<Step>**Dose 3.** Each dose adds less than the one before …</Step>
<Step>**Dose 4.** …</Step>
<Step>**Dose 5.** …</Step>
<Step>**Steady state.** …</Step>
</ScrollyDemo>

PK explorer

Live concentration–time curves from the PK engine, with sliders for the model's parameters. The view (parameters, axis and frozen curve) is kept in the page address, so it can be shared.

PKExplorer

A preset linear model (one to four compartments, IV or oral) with plain props, usable straight from MDX or the CMS snippet. Freeze a curve to compare against, switch the axis, read the exposure metrics.

View data
Time (h)Current (mg/L)
00
1.52.029
31.552
4.51.072
60.8107
7.50.6799
90.6081
10.50.5608
120.5238
13.52.521
152.014
16.51.507
181.22
19.51.065
210.9709
22.50.9023
240.8452
25.52.823
272.299
28.51.775
301.473
31.51.303
331.194
34.51.113
361.043
37.53.01
392.474
40.51.94
421.628
43.51.449
451.332
46.51.242
481.165
49.53.124
512.582
52.52.042
541.724
55.51.539
571.417
58.51.322
601.241
61.53.195
632.649
64.52.105
661.783
67.51.595
691.469
70.51.372
721.287
100 mg every 12 h with a two-compartment model. Freeze a curve, then change a parameter to compare; the window is illustrative (1–3 mg/L).
Model parameters
Exposure over the plotted window (AUC0–∞ after every dose)
MetricCurrent
Cmax (mg/L)3.2
Tmax (h)61.3
AUC0–72 (mg·h/L)118
AUC0–∞ (mg·h/L)150
Css,avg (mg/L)2.08
Vss (L)80
t½, λ₁ (h)0.839
Terminal t½, λ₂ (h)17.2
index.mdx
import PKExplorer from '../../../components/interactive/PKExplorer.tsx';
<PKExplorer
client:visible
model="2cmt-oral"
params={{ CL: 4, V1: 20, Q: 10, V2: 60, ka: 0.8 }}
regimen={{ amt: 100, ii: 12, addl: 5 }}
window={{ min: 1, max: 3 }}
>
100 mg every 12 h with a two-compartment model. Freeze a curve, then change a parameter to
compare; the window is illustrative (1–3 mg/L).
</PKExplorer>

PKExplorer in macro-constants

Any preset in clearance and volume, micro-constants or macro-constants (A₁, λ₁, …), with a control that lets the reader switch; the values convert so the curve is unchanged. Here a three-compartment bolus on a log axis, with a half-life per phase and Vss.

View data
Time (h)Current (mg/L)
010
21.005
40.6253
60.4383
80.3192
100.2427
120.1932
140.1608
160.1394
180.1249
200.1148
220.1076
240.1022
260.09795
280.09447
300.0915
320.08886
340.08646
360.08421
380.08209
400.08007
420.07812
440.07623
460.0744
480.07262
500.07089
520.0692
540.06755
560.06594
580.06438
600.06285
620.06135
640.05989
660.05847
680.05708
700.05572
720.0544
740.05311
760.05185
780.05061
800.04941
820.04824
840.04709
860.04597
880.04488
900.04381
920.04277
940.04176
960.04076
A three-compartment bolus written as three exponential phases. Switch to micro-constants or clearance and volume: the curve stays the same.
Model parameters

Coefficients A are for a dose of 100 mg; peripheral compartments are numbered fastest first.

Exposure over the plotted window (AUC0–∞ after every dose)
MetricCurrent
Cmax (mg/L)10
Tmax (h)0
AUC0–96 (mg·h/L)16.6
AUC0–∞ (mg·h/L)20
Vss (L)230
t½, λ₁ (h)0.303
t½, λ₂ (h)3.05
Terminal t½, λ₃ (h)57.6
index.mdx
import PKExplorer from '../../../components/interactive/PKExplorer.tsx';
<PKExplorer
client:visible
model="3cmt-iv"
parameterization="macro"
regimen={{ amt: 100 }}
scale="log"
tEnd={96}
urlPrefix="pk3-"
>
A three-compartment bolus written as three exponential phases. Switch to micro-constants or
clearance and volume: the curve stays the same.
</PKExplorer>

PKExplorer with a custom model

A model with no closed form, written in TypeScript in a small island: a parameter schema and a simulate function (here the ODE engine with Michaelis–Menten elimination).

View data
Time (h)Current (mg/L)
010
19.154
28.331
37.533
46.764
56.026
65.323
74.657
84.033
93.453
102.922
112.441
122.013
131.638
141.315
151.043
160.8173
170.6339
180.4871
190.3715
200.2815
210.2122
220.1593
230.1192
2410.09
259.24
268.415
277.614
286.842
296.101
305.394
314.724
324.095
333.511
342.974
352.488
362.055
371.674
381.346
391.069
400.8386
410.6511
420.5008
430.3822
440.2897
450.2185
460.1641
470.1228
480.0917
Saturable elimination. Well above Km the concentration falls at a nearly constant rate (zero order, Vmax/V), so the curve bends downwards on the log axis; well below Km the decline is exponential, a straight line.
Model parameters
Exposure over the plotted window (AUC0–∞ after every dose)
MetricCurrent
Cmax (mg/L)10.1
Tmax (h)24
AUC0–48 (mg·h/L)150
AUC0–∞ (mg·h/L)—
Vss (L)—
t½ (h)—
PkCustomExample.tsx
import PKExplorer from '../../../components/interactive/PKExplorer';
import { defineParams } from '../../../lib/controls';
import { michaelisMenten, solveOde } from '../../../lib/pk';
import type { ExplorerModel } from '../../../lib/pk-explorer';
// A custom model for <PKExplorer>: a schema for its sliders and a simulate function. Here,
// Michaelis–Menten elimination from one compartment (V = 50 L), solved by the ODE engine.
// A slider named `dose` sets the amount of every dose. Illustrative values.
const schema = defineParams([
{ name: 'vmax', label: 'Vmax', unit: 'mg/h', min: 5, max: 500, default: 60, scale: 'log' },
{ name: 'km', label: 'Km', unit: 'mg/L', min: 0.1, max: 50, default: 4, scale: 'log' },
{ name: 'dose', label: 'Dose', unit: 'mg', min: 10, max: 2000, default: 500, scale: 'log' },
]);
const saturable: ExplorerModel = {
schema,
route: 'bolus',
simulate: (values, doses, times) =>
solveOde(michaelisMenten, doses, times, {
params: { vmax: values.vmax, km: values.km },
}).output('concentration'),
// No terminal half-life or exact AUC∞ for a nonlinear model: the table shows "—".
};
export default function PkCustomExample() {
return (
<PKExplorer
model={saturable}
regimen={{ amt: 500, ii: 24, addl: 1 }}
scale="log"
urlPrefix="lab-mm-"
ariaLabel="Concentration against time after two 500 mg IV bolus doses 24 h apart, with Michaelis–Menten elimination."
>
Saturable elimination. Well above Km the concentration falls at a nearly constant rate (zero
order, Vmax/V), so the curve bends downwards on the log axis; well below Km the decline is
exponential, a straight line.
</PKExplorer>
);
}

Population explorer

A simulated population around a linear PK model: sliders for the typical parameters and their between-subject variability, and the median with a prediction-interval band. The simulation runs in a Web Worker, which loads only when the explorer comes into view.

PopulationExplorer

1,000 subjects with log-normal IIV (as % CV) and residual error, simulated off the main thread while a slider moves. Resample draws a new population; the seed is kept in the page address with the sliders.

View data
Time (h)Typical subject (mg/L)
00
1.751.479
3.51.499
5.251.303
71.101
8.750.926
10.50.7776
12.251.089
142.067
15.751.935
17.51.659
19.251.399
211.175
22.750.9868
24.51.594
26.252.236
282.033
29.751.733
31.51.46
33.251.226
351.03
36.751.876
38.52.274
40.252.03
421.725
43.751.452
45.51.22
47.251.024
492.053
50.752.267
52.51.998
54.251.694
561.425
57.751.196
59.51.004
61.252.168
632.243
64.751.957
66.51.656
68.251.392
701.169
71.750.9813
73.52.241
75.252.211
771.913
78.751.616
80.51.358
82.251.141
840.9576
1,000 simulated subjects on 100 mg every 12 h: the median and the 90% prediction interval. IIV and residual error are illustrative.

The 1,000 subjects are simulated in your browser; until then, the dashed curve is the typical subject.

Typical values and variability
index.mdx
import PopulationExplorer from '../../../components/interactive/PopulationExplorer.tsx';
<PopulationExplorer
client:visible
model="1cmt-oral"
params={{ CL: 5, V: 50, ka: 1 }}
iiv={{ CL: 30, V: 20, ka: 40 }}
residual={{ prop: 10 }}
regimen={{ amt: 100, ii: 12, addl: 6 }}
window={{ min: 1, max: 3 }}
>
1,000 simulated subjects on 100 mg every 12 h: the median and the 90% prediction interval.
IIV and residual error are illustrative.
</PopulationExplorer>