# Create some data from the class `Data`.
my_data <- Data(
x = c(0.1, 0.5, 1.5, 3, 6, 10, 10, 10),
y = c(0, 0, 0, 0, 0, 0, 1, 0),
doseGrid = c(0.1, 0.5, 1.5, 3, 6, seq(from = 10, to = 80, by = 2))
)
# Initialize the CRM model.
my_model <- LogisticLogNormal(
mean = c(-0.85, 1),
cov = matrix(c(1, -0.5, -0.5, 1), nrow = 2),
ref_dose = 56
)
# Sample from the posterior distribution.
my_options <- McmcOptions(
burnin = 100,
step = 2,
samples = 1000
)
samples <- mcmc(data = my_data, model = my_model, options = my_options)
samples
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.