subset.pairwise: Return subset of pairwise object

View source: R/subset.pairwise.R

subset.pairwiseR Documentation

Return subset of pairwise object

Description

The subset method returns a subset of a pairwise object.

Usage

## S3 method for class 'pairwise'
subset(x, subset, ...)

Arguments

x

An object of class pairwise.

subset

A logical expression indicating rows to keep; missing values are taken as false.

...

Additional arguments.

Value

A pairwise object is returned.

Author(s)

Guido Schwarzer guido.schwarzer@uniklinik-freiburg.de

See Also

pairwise, dat.franchini2012

Examples

# Transform data from arm-based format to contrast-based format
pw1 <- pairwise(list(Treatment1, Treatment2, Treatment3),
  n = list(n1, n2, n3),
  mean = list(y1, y2, y3), sd = list(sd1, sd2, sd3),
  data = dat.franchini2012, studlab = Study)
# Subset without Lieberman studies
subset(pw1, !grepl("Lieberman", studlab))[, 1:5]


guido-s/meta documentation built on Feb. 20, 2025, 9:08 a.m.