View source: R/create_prior_data.R
create_prior_data | R Documentation |
Assembling information from trials in the source population in a structured way (required as a pre-processing step for MAP prior creation).
create_prior_data(study_label = NULL, n_total, est, se)
study_label |
An optional vector containing trial labels. |
n_total |
A vector containing total sample sizes. |
est |
A vector containing treatment effect estimates. |
se |
A vector containing standard errors of the effect estimates. |
A data frame containing data on the trials in the source population.
create_new_trial_data
, create_posterior_data
prior_data <- create_prior_data(
n_total = c(160, 240, 320),
est = c(1.23, 1.40, 1.51),
se = c(0.4, 0.36, 0.31)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.