probFunction: Getting the Prob Function for a Given Model Type

Description Usage Arguments Value See Also Examples

Description

[Experimental]

A function that returns a function that computes the toxicity probabilities for a given dose, model and the model parameters.

Usage

1
2
3
4
5
6
7
probFunction(model, ...)

## S4 method for signature 'GeneralModel'
probFunction(model, ...)

## S4 method for signature 'ModelTox'
probFunction(model, ...)

Arguments

model

(GeneralModel or ModelTox)
the model.

...

model specific parameters.

Value

A function that computes toxicity probabilities for a given dose and the model.

See Also

prob, doseFunction.

Examples

1
2
3
4
5
6
7
8
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)

0liver0815/onc-crmpack-test documentation built on Feb. 19, 2022, 12:25 a.m.