efficacyFunction | R Documentation |
A function that returns an efficacy()
function that computes expected
efficacy for a given dose level, based on the model specific parameters.
efficacyFunction(model, ...)
## S4 method for signature 'ModelEff'
efficacyFunction(model, ...)
model |
( |
... |
model specific parameters. |
A efficacy()
function that computes expected efficacy.
efficacyFunction(ModelEff)
:
efficacy()
.
my_data <- DataDual(
doseGrid = c(0.001, seq(25, 300, 25)),
placebo = TRUE
)
my_model <- Effloglog(
eff = c(1.223, 2.513),
eff_dose = c(25, 300),
nu = c(a = 1, b = 0.025),
data = my_data,
const = 2
)
eff_fun <- efficacyFunction(my_model, theta1 = -4.8, theta2 = 3.7)
eff_fun(30)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.