Learn R Programming

netmeta (version 3.2-0)

createC: Auxiliary functions for component network meta-analysis

Description

Auxiliary functions to (i) create a combination / C matrix with information on treatment combinations and interaction terms and (ii) a vector with all combinations in a component network meta-analysis.

Usage

createC(x, ...)

# S3 method for matrix createC( x, comb.ia, inactive = NULL, sep.comps = gs("sep.comps"), sep.ia = gs("sep.ia"), ... )

# S3 method for netcomb createC(x, comb.ia = NULL, inactive = NULL, sep.ia = x$sep.ia, ...)

# S3 method for netmeta createC(x, inactive = NULL, sep.comps = gs("sep.comps"), ...)

# S3 method for netconnection createC(x, inactive = NULL, sep.comps = gs("sep.comps"), ...)

# S3 method for default createC(x, n = 1, ...)

combinations(x, n = NULL)

Value

R function createC returns a combination matrix / C matrix with studies in rows and component and interaction terms in columns.

R function combinations returns a character vector with combinations.

Arguments

x

A netcomb, netmeta or netconnection object, a matrix or the number of components.

...

Additional arguments.

comb.ia

A character vector specifying treatment combinations which will be considered as interactions.

inactive

A character string defining the inactive treatment component (see netcomb).

sep.comps

A single character to define separator between treatment components.

sep.ia

A single character to define separator for interactions.

n

A single number specifying the number of components in combinations.

See Also

netcomb, discomb

Examples

Run this code
# Examples: example(netcomb)

Run the code above in your browser using DataLab