Learn R Programming

tipmap (version 0.5.2)

create_prior_data: 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)

Value

A data frame containing data on the trials in the source population.

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.

See Also

create_new_trial_data, create_posterior_data

Examples

Run this code
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)
)

Run the code above in your browser using DataLab