ume.network.data: Make a network object for the unrelated mean effects model...

Description Usage Arguments References

View source: R/ume.network.R

Description

This is similar to the function network.data, except this is used for the unrelated mean effects model.

Usage

1
2
3
4
ume.network.data(Outcomes, Study, Treat, N = NULL, SE = NULL,
  response = NULL, type = "random", mean.mu = NULL, prec.mu = NULL,
  mean.d = NULL, prec.d = NULL, hy.prior = list("dunif", 0, 5),
  dic = TRUE)

Arguments

Outcomes

Arm-level outcomes. If it is a multinomial response, the matrix would be arms (row) by multinomial categories (column). If it is binomial or normal, it would be a vector.

Study

A vector of study indicator for each arm

Treat

A vector of treatment indicator for each arm. Treatments should have positive integer values starting from 1 to total number of treatments. In a study, lowest number is taken as the baseline treatment.

N

A vector of total number of observations in each arm. Used for binomial and multinomial responses.

SE

A vector of standard error for each arm. Used only for normal response.

response

Specification of the outcomes type. Must specify one of the following: "normal", "binomial", or "multinomial".

type

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

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.

dic

This is an indicator for whether user wants to calculate DIC. Model stores less information if you set it to FALSE.

References

S. Dias, N.J. Welton, A.J. Sutton, D.M. Caldwell, G. Lu, and A.E. Ades (2013), Evidence synthesis for decision making 4: inconsistency in networks of evidence based on randomized controlled trials, Medical Decision Making 33(5):641-656. [https://doi.org/10.1177/0272989X12455847]


MikeJSeo/network-meta documentation built on Nov. 24, 2018, 1:01 p.m.