View source: R/table.meta.analysis.summary.r
table.meta.analysis.summary | R Documentation |
Creates a summary of a meta-analysis dataset. The dataset needs specific column names (see Notes).
table.meta.analysis.summary(data, cov.cols = NULL, cov.cat = NULL)
data |
meta.analysis dataset |
cov.cols |
character vector with covariate columns |
cov.cat |
character vector indicating whether each covariate is continuous or categorical |
Summarized meta-analysis dataset
Standard column names are reference reference number or label to uniquely identify each public literature article/source study study identifier or label drug drug name in a given arm dose dose in a given arm (could be total daily, or some other summary figure) time observation time n sample size at each observation time Each unique study+drug+dose = one arm
If there are multiple doses of a drug in a study, computes the AVERAGE starting size Covariate columns (both continous and categorical) can be specified in the "cov.cols" argument (a vector). Whether each covariate is continous or categorical is specified in the "cov.cat" argument.
meta.analysis.ds = read.csv(file.path(getOption("qpExampleDir")
, "../Excel/meta.analysis.ds.csv"),stringsAsFactors = FALSE)
table.meta.analysis.summary(meta.analysis.ds
, cov.cols = c("age","fem.pct","dis.score.bl","drug.ir")
, cov.cat = c(FALSE,FALSE,FALSE,TRUE)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.