This replaces the kin/kout parameterization to the R0 and kout parameterization
See also
Other Indirect response:
addIndirect()
,
addIndirectLin()
Examples
addIndirect(stim="in") |> convertKinR0()
#>
#>
#> ── rxode2-based free-form 1-cmt ODE model ──────────────────────────────────────
#> ── Initalization: ──
#> Fixed Effects ($theta):
#> lkout effectSd lEmax lEC50 uR0
#> 0.1 0.1 0.1 0.1 0.1
#>
#> States ($state or $stateDf):
#> Compartment Number Compartment Name
#> 1 1 R
#> ── Model (Normalized Syntax): ──
#> function() {
#> ini({
#> lkout <- 0.1
#> label("first order rate response loss (kout)")
#> effectSd <- c(0, 0.1)
#> label("additive error for effect")
#> lEmax <- 0.1
#> label("Maximum effect (Emax)")
#> lEC50 <- 0.1
#> label("Concentration of 50% Emax (Emax)")
#> uR0 <- 0.1
#> label("untransformed baseline (R0)")
#> })
#> model({
#> R0 <- uR0
#> Emax <- exp(lEmax)
#> EC50 <- exp(lEC50)
#> kout <- exp(lkout)
#> R(0) <- R0
#> d/dt(R) <- kout * R0 * (1 + Emax * Cc/(Cc + EC50)) -
#> kout * R
#> effect <- R
#> effect ~ add(effectSd)
#> })
#> }