createC | R Documentation |
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.
createC(x, ...)
## S3 method for class 'matrix'
createC(
x,
comb.ia,
inactive = NULL,
sep.comps = gs("sep.comps"),
sep.ia = gs("sep.ia"),
...
)
## S3 method for class 'netcomb'
createC(x, comb.ia = NULL, inactive = NULL, sep.ia = x$sep.ia, ...)
## S3 method for class 'netmeta'
createC(x, inactive = NULL, sep.comps = gs("sep.comps"), ...)
## S3 method for class 'netconnection'
createC(x, inactive = NULL, sep.comps = gs("sep.comps"), ...)
## Default S3 method:
createC(x, n = 1, ...)
combinations(x, n = NULL)
x |
A |
... |
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 |
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. |
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.
Guido Schwarzer guido.schwarzer@uniklinik-freiburg.de, Gerta Rücker gerta.ruecker@uniklinik-freiburg.de
netcomb
, discomb
# Examples: example(netcomb)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.