convert_data_arm {MetaStan} | R Documentation |
Convert contrast-based dataset to arm-based dataset (deprecated)
Description
convert_data_arm
creates a dataframe to fit a meta-analysis
model using meta_Stan
function.
Usage
convert_data_arm(nt, nc, pt, pc, pub, data = NULL)
Arguments
nt |
Number of subjects in treatment arm |
nc |
Number of subjects in control arm |
pt |
Number of events in treatment arm |
pc |
Number of events in treatment arm |
pub |
The corresponding publication |
data |
Optional data frame containing the variables given to the arguments above. |
Value
A dataframe object
Examples
## Create arm-based dataset
data('dat.Crins2014', package = "MetaStan")
dat_converted <- convert_data_arm(exp.total, cont.total,
exp.AR.events, cont.AR.events,
publication, data = dat.Crins2014)
[Package MetaStan version 1.0.0 Index]