Description Usage Arguments Details Value See Also Examples
This function produces descriptions that are used for making a label,
which is a heterogeneity measure in a specified format in
character. It is used inside the arguments stats
and
newLabel
in the function metaDF2Matrix
.
1 | makeLabelDesc(format, heteroNames)
|
format |
Format string for new label. |
heteroNames |
Names of existing heterogeneity measures. |
The names of heterogeneity measures are taken from the vector, "hetero",
of the "metaDF"
object.
An object of class 'labeldesc'
with a list of following components:
format |
A format string |
labelnames |
A character vector of names of labeled measures |
1 2 3 4 5 6 7 8 9 10 11 | library(meta)
data(Olkin95)
meta1 <- metabin(event.e, n.e, event.c, n.c, data = Olkin95,
subset = c(41,47,51,59), sm = "RR", method = "I")
Data <- meta2DF(meta1)
het1 <- makeLabelDesc(c("I2.conf"), label = "Heterogeneity:")
het2 <- makeLabelDesc(c("Q"), label = " ")
matrix <- metaDF2Matrix(Data, stat = list(het1,het2))
drawMeta(matrix,
plotPar = metaPar(stat = list(col="darkred",
fontface="bold.italic")))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.