Learn R Programming

trialr (version 0.0.7)

efftox_dtps: Calculate dose-transition pathways for an EffTox study

Description

Calculate dose-transition pathways for an EffTox study.

Usage

efftox_dtps(dat, cohort_sizes, next_dose, ...)

Arguments

dat

An instance of efftox_params, a list of EffTox parameters. An example is yielded by efftox_parameters_demo.

cohort_sizes

vector of future cohort sizes, i.e. positive integers. E.g. Tot calculate paths for the the next cohort of two followed by the next cohort of three, use c(2, 3).

next_dose

the dose-level to be given to the immediately next cohort.

...

extra params passed to rstan::sampling.

Value

dose pathways in a data.frame.

References

Brock et al. (submitted 2017), Implementing the EffTox Dose-Finding Design in the Matchpoint Trial.

See Also

efftox_params

efftox_parameters_demo

Examples

Run this code
# NOT RUN {
# Calculate the paths for the first cohort of 3 in Thall et al 2014 example
dat <- efftox_parameters_demo()
# }
# NOT RUN {
dtps1 <- efftox_dtps(dat = dat, cohort_sizes = c(3), next_dose = 1)
# }
# NOT RUN {
# To calculate future paths in a partially-observed trial
dat <- efftox_parameters_demo()
dat$doses = array(c(1,1,1))
dat$eff = array(c(0,0,0))
dat$tox = array(c(1,1,1))
dat$num_patients = 3
# }
# NOT RUN {
dtps2 <- efftox_dtps(dat = dat, cohort_sizes = c(3), next_dose = 1)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab