Description Usage Arguments Value Examples
View source: R/convert_data_arm.R
convert_data_arm
creates a dataframe to fit a meta-analysis
model using meta_Stan
function.
1 | convert_data_arm(nt, nc, pt, pc, pub, data = NULL)
|
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. |
A dataframe object
1 2 3 4 5 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.