create_prior_data {tipmap} | R Documentation |
Creates input data frame for construction of MAP prior
Description
Assembling information from trials in the source population in a structured way (required as a pre-processing step for MAP prior creation).
Usage
create_prior_data(study_label = NULL, n_total, est, se)
Arguments
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. |
Value
A data frame containing data on the trials in the source population.
See Also
create_new_trial_data
, create_posterior_data
Examples
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)
)
[Package tipmap version 0.5.2 Index]