probFunction | R Documentation |
A function that returns a prob()
function that computes the toxicity
probabilities for a given dose level, based on the model specific parameters.
probFunction(model, ...)
## S4 method for signature 'GeneralModel'
probFunction(model, ...)
## S4 method for signature 'ModelTox'
probFunction(model, ...)
## S4 method for signature 'LogisticLogNormalOrdinal'
probFunction(model, grade, ...)
model |
( |
... |
model specific parameters. |
grade |
( |
A prob()
function that computes toxicity probabilities.
probFunction(GeneralModel)
:
probFunction(ModelTox)
:
probFunction(LogisticLogNormalOrdinal)
:
prob()
, doseFunction()
.
my_model <- LogisticLogNormal(
mean = c(-0.85, 1),
cov = matrix(c(1, -0.5, -0.5, 1), nrow = 2),
ref_dose = 50
)
prob_fun <- probFunction(my_model, alpha0 = 2, alpha1 = 3)
prob_fun(30)
ordinal_data <- .DefaultDataOrdinal()
ordinal_model <- .DefaultLogisticLogNormalOrdinal()
opts <- .DefaultMcmcOptions()
samples <- mcmc(ordinal_data, ordinal_model, opts)
probFunction(
ordinal_model,
grade = 2L,
alpha2 = samples@data$alpha1,
beta = samples@data$beta
)(50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.