makeLabelDesc: Make a label description for heterogeneity measures.

Description Usage Arguments Details Value See Also Examples

Description

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.

Usage

1
makeLabelDesc(format, heteroNames)

Arguments

format

Format string for new label.

heteroNames

Names of existing heterogeneity measures.

Details

The names of heterogeneity measures are taken from the vector, "hetero", of the "metaDF" object.

Value

An object of class 'labeldesc' with a list of following components:

format

A format string

labelnames

A character vector of names of labeled measures

See Also

makeStatsDesc

Examples

 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")))

pmur002/metaplot documentation built on May 25, 2019, 10:21 a.m.