modelPartialExposureResponseSweep
Information
PartialExposureResponseSweep
Base for a standalone exposure-response CURVE: the drug's effect plotted against exposure when no PK model is available to generate that exposure over time. Sweep the driver and read the response off the resulting curve.
Why this exists next to PartialConcEffect
PartialConcEffect
carries the same Emax algebra, but its conc is an input, so it is
usable only as a driven SUB-COMPONENT. A top-level simulated model cannot bind an input: OMC
reports "conc = ... has size 1 but 0 variables", and a modification in the extends clause is
ignored outright — the model then compiles, runs, and returns the drug-free baseline at every
point. This class owns its driver instead of receiving one, which is what makes a standalone,
directly simulable curve possible.
Extending it
Supply one equation for response in terms of E0,
Emax and frac. See
SigmoidEmaxSweep
(added) and
IndirectTurnoverSweep
(reciprocal). A concrete drug example then extends one of those and sets parameter values only.
For a time course instead of a curve
Response over time after a dose, still with no PK, is a different question and needs PartialKPD.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | E0 | 0 | response with no drug |
| Real | Emax | 1 | maximal effect term — how it enters the response is set by the extending class |
| Real | EC50 | 1 | exposure at half of the maximal EFFECT TERM (D50, for a dose sweep) |
| Real | gamma | 1 | Hill coefficient |
| Real | exposure_per_s | 1.0 | exposure units per second of simulated time — the sweep rate |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | exposure | the driver being swept: a concentration, or a dose | |
| Real | frac | Hill fraction, 0..1 — the shared part of every exposure-response shape | |
| Real | response | modelled response at that exposure |