Learn R Programming

meta (version 3.0-1)

update.meta: Update a meta-analysis object

Description

Update an existing meta-analysis object created with R function metabin, metacont, metagen, metacor, or metaprop.

Usage

## S3 method for class 'meta':
update(object, 
       data=object$data, subset=object$subset,
       studlab=object$data$studlab,
       method=object$method, sm=object$sm,
       incr=object$incr, allincr=object$allincr,
       addincr=object$addincr, allstudies=object$allstudies,
       MH.exact=object$MH.exact, RR.cochrane=object$RR.cochrane,
       level=object$level, level.comb=object$level.comb,
       comb.fixed=object$comb.fixed, comb.random=object$comb.random,
       hakn=object$hakn, method.tau=object$method.tau,
       tau.preset=object$tau.preset, TE.tau=object$TE.tau, tau.common=object$tau.common,
       prediction=object$prediction, level.predict=object$level.predict,
       method.bias=object$method.bias,
       title=object$title, complab=object$complab, outclab=object$outclab,
       label.e=object$label.e, label.c=object$label.c,
       label.left=object$label.left, label.right=object$label.right,
       n.e=object$n.e, n.c=object$n.c,
       byvar=object$byvar, bylab=object$bylab, print.byvar=object$print.byvar,
       print.CMH=object$print.CMH, keepdata=TRUE,
       warn=object$warn, ...)

Arguments

object
An object of class meta.
data
Dataset.
subset
Subset.
studlab
Study label.
method
A character string indicating which method is to be used for pooling of studies. One of "Inverse", "MH", or "Peto", can be abbreviated. (only for metabin object)
sm
A character string indicating which summary measure is used for pooling.
incr
Could be either a numerical value which is added to each cell frequency for studies with a zero cell count or the character string "TA" which stands for treatment arm continuity correction.
allincr
A logical indicating if incr is added to each cell frequency of all studies if at least one study has a zero cell count. If FALSE (default), incr is added only to each cell frequency of studies with a zero cell count.
addincr
A logical indicating if incr is added to each cell frequency of all studies irrespective of zero cell counts.
allstudies
A logical indicating if studies with zero or all events in both groups are to be included in the meta-analysis (applies only if sm is equal to "RR" or "OR").
MH.exact
A logical indicating if incr is not to be added to all cell frequencies for studies with a zero cell count to calculate the pooled estimate based on the Mantel-Haenszel method.
RR.cochrane
A logical indicating if 2*incr instead of 1*incr is to be added to n.e and n.c in the calculation of the risk ratio (i.e., sm="RR") for studies with a zero cell. This is used in
level
The level used to calculate confidence intervals for individual studies.
level.comb
The level used to calculate confidence intervals for pooled estimates.
comb.fixed
A logical indicating whether a fixed effect meta-analysis should be conducted.
comb.random
A logical indicating whether a random effects meta-analysis should be conducted.
hakn
A logical indicating whether the method by Hartung and Knapp should be used to adjust test statistics and confidence intervals.
method.tau
A character string indicating which method is used to estimate the between-study variance $\tau^2$. Either "DL", "REML", "ML", "HS", "SJ", "HE", or "EB"
tau.preset
Prespecified value for between-study variance $\tau^2$.
TE.tau
Overall treatment effect used to estimate the between-study variance $\tau^2$.
tau.common
A logical indicating whether tau-squared should be the same across subgroups.
prediction
A logical indicating whether a prediction interval should be printed.
level.predict
The level used to calculate prediction interval for a new study.
method.bias
A character string indicating which test for funnel plot asymmetry is to be used. Either "rank", "linreg", "mm", "count", "score", or "peters", can be abbreviated.
title
Title of meta-analysis / systematic review.
complab
Comparison label.
outclab
Outcome label.
label.e
Label for experimental group.
label.c
Label for control group.
label.left
Graph label on left side of forest plot.
label.right
Graph label on right side of forest plot.
n.e
Number of observations in experimental group. (only for metagen object)
n.c
Number of observations in control group. (only for metagen object)
byvar
An optional vector containing grouping information (must be of same length as event.e).
bylab
A character string with a label for the grouping variable.
print.byvar
A logical indicating whether the name of the grouping variable should be printed in front of the group labels.
print.CMH
A logical indicating whether result of the Cochran-Mantel-Haenszel test for overall effect should be printed.
keepdata
A logical indicating whether original data (set) should be kept in meta object.
warn
A logical indicating whether warnings should be printed (e.g., if incr is added to studies with zero cell frequencies).
...
Additional arguments (ignored at the moment).

Value

  • An object of class "meta" and "metabin", "metacont", "metagen", "metaprop", or "metacor".

Details

Wrapper function to update an existing meta-analysis object which was created with R function metabin, metacont, metagen, metacor, or metaprop. More details on function arguments are available in help files of R function metabin, metacont, metagen, metacor, or metaprop, respectively.

See Also

metabin, metacont, metagen, metaprop, metacor

Examples

Run this code
data(Fleiss93cont)
meta1 <- metacont(n.e, mean.e, sd.e, n.c, mean.c, sd.c,
                  data=Fleiss93cont, sm="SMD", studlab=study)
meta1

# Change summary measure (from 'SMD' to 'MD')
#
update(meta1, sm="MD")

# Restrict analysis to subset of studies
#
update(meta1, subset=1:2)

Run the code above in your browser using DataLab