create_prior_data: Creates input data frame for construction of MAP prior

View source: R/create_prior_data.R

create_prior_dataR 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)
)

tipmap documentation built on Aug. 14, 2023, 5:09 p.m.