#
# Get list of settings
#
settings.meta(print=TRUE)
#
# Meta-analyses using default settings of R pacakge meta
#
metabin(10, 20, 15, 20, warn=FALSE)
metaprop(4, 20)
metabin(10, 20, 15, 20, sm="RD", warn=FALSE)
metaprop(4, 20, sm="PLN")
#
# Change default summary measure for R functions metabin and metaprop
#
oldset <- settings.meta(smbin="RD", smprop="PLN")
#
metabin(10, 20, 15, 20, warn=FALSE)
metaprop(4, 20)
#
# Reset settings
#
settings.meta(oldset)
#
# Change level for confidence intervals
#
metagen(1:3, (2:4)/10, sm="MD")
settings.meta(level=0.99, level.comb=0.999)
metagen(1:3, (2:4)/10, sm="MD")
#
# Always print a prediction interval
#
settings.meta(prediction=TRUE)
metagen(1:3, (2:4)/10, sm="MD")
#
# Try to set unknown argument
#
settings.meta(unknownarg=TRUE)
#
# Reset to default settings of R package meta
#
settings.meta(reset=TRUE)
metabin(10, 20, 15, 20, warn=FALSE)
metaprop(4, 20)
metagen(1:3, (2:4)/10, sm="MD")
#
# Never back transform results (e.g. print log odds ratios instead of
# odds ratios, print transformed correlations/proportions instead of
# correlations/proportions)
#
oldset <- settings.meta(backtransf=FALSE)
metabin(10, 20, 15, 20, warn=FALSE)
metaprop(4, 20)
metacor(c(0.85, 0.7, 0.95), c(20, 40, 10))
settings.meta(oldset)
Run the code above in your browser using DataLab