Learn R Programming

trialr (version 0.0.7)

model_ThallHierarchicalBinary: Stan model for Thall et al.'s hierarchical Bayesian model for binary data

Description

This is the Stan implementation of Thall et al.'s hierarchical model for analysing the response rate of a common drug in multiple sub-types of a single disease.

The model is compiled when trialr is installed and is available at run-time under stanmodels$ThallHierarchicalBinary.

The design was first published by Thall et al. in 2003.

See the Hierarchical Bayesian Response vignette for a detailed description of the probability model and a demonstration of the implementation in trial.

Arguments

References

Thall, Wathen, Bekele, Champlin, Baker, & Benjamin. 2003. "Hierarchical Bayesian approaches to phase II trials in diseases with multiple subtypes". Statistics in Medicine, 22(5), 763-780. https://doi.org/10.1002/sim.1399

See Also

thallhierarchicalbinary_params

thallhierarchicalbinary_parameters_demo

Examples

Run this code
# NOT RUN {
# Hierarchical model for responses in a disease with multiple subtypes
dat <- thallhierarchicalbinary_parameters_demo()
samp <- rstan::sampling(stanmodels$ThallHierarchicalBinary, data = dat)
rstan::plot(samp, pars = 'p') # Plot the modelled response rates in the subtypes
# }

Run the code above in your browser using DataLab