Description Usage Arguments Value References Examples

View source: R/contrast.network.R

This is similar to the function `network.data`

, except it uses contrast-level data instead of arms-level data. Contrast-level format uses treatment differences relative to the control arm.
Note that in two arm trials there is only one contrast value per trial, but in three arm trials there are two contrast values relative to the control arm.

1 2 3 4 5 6 7 8 9 10 11 12 | ```
contrast.network.data(
Outcomes,
Treat,
SE,
na,
V = NULL,
type = "random",
rank.preference = "higher",
mean.d = 0,
prec.d = 1e-04,
hy.prior = list("dunif", 0, 100)
)
``` |

`Outcomes` |
A vector of Contrast-level outcomes. Outcome is assumed to be normally distributed. If there are three arms in a trial, need to include two contrast values for that trial. See parkinsons_contrast data for an example. |

`Treat` |
A vector of treatments for each arm. Treatments should have positive integer values starting from 1 to total number of treatments. |

`SE` |
A vector of standard error for each contrasts. |

`na` |
A vector of number of arms in each study. |

`V` |
Needed if you have multi-arm trials. Length of this vector should be number of studies. If the study is multi-arm trial, need to specify variance of the baseline treatment in that trial. Denote it with NA if the study only has two-arm trials. |

`type` |
Type of model fitted: either "random" for random effects model or "fixed" for fixed effects model. Default is "random". |

`rank.preference` |
Set it equal to "higher" if higher values are preferred (i.e. assumes events are good). Set it equal to "lower" if lower values are preferred (i.e. assumes events are bad). Default is "higher". |

`mean.d` |
Prior mean for the relative effect |

`prec.d` |
Prior precision for the relative effect |

`hy.prior` |
Prior for the heterogeneity parameter. Supports uniform, gamma, and half normal for normal. It should be a list of length 3, where first element should be the distribution (one of dunif, dgamma, dhnorm, dwish) and the next two are the parameters associated with the distribution. For example, list("dunif", 0, 5) give uniform prior with lower bound 0 and upper bound 5 for the heterogeneity parameter. |

Creates list of variables that are used to run the model using `contrast.network.run`

A.J. Franchini, S. Dias, A.E. Ades, J.P. Jansen, N.J. Welton (2012), *Accounting for correlation in network meta-analysis with multi-arm trials*, Research Synthesis Methods 3(2):142-160. doi: 10.1002/jrsm.1049

S. Dias, A.J. Sutton, A.E. Ades, and N.J. Welton (2013a), *A Generalized Linear Modeling Framework for Pairwise and Network Meta-analysis of Randomized Controlled Trials*, Medical Decision Making 33(5):607-617. doi: 10.1177/0272989X12458724

1 2 3 | ```
network <- with(parkinsons_contrast, {
contrast.network.data(Outcomes, Treat, SE, na, V)
})
``` |

```
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.