nma.ab.cont performs arm-based network meta-analysis for continuous outcomes. It estimates treatment-specific effects and effect differences.nma.ab.cont(s.id, t.id, mean, sd, total.n, data, trtname,
param = c("mu", "diff", "rank.prob"),model = "het_cor",
prior.type, a = 0.001, b = 0.001, c = 10,
higher.better = FALSE, digits = 4, n.adapt = 5000,
n.iter = 100000, n.burnin = floor(n.iter/2), n.chains = 3,
n.thin = max(1, floor((n.iter - n.burnin)/100000)),
conv.diag = FALSE, trace = NULL, dic = FALSE, postdens = FALSE,
mcmc.samples = FALSE)data.data.data.data.data.data is specified, the previous arguments, s.id, t.id, mean, sd, and total.n, should be specified as t.id. If not specified, t.id is used as treatment names."mu"), effect differences ("diff"), and treatment rank probabilities ("rank.prob"). "m"hom_eqcor", "het_eqcor", or "het_cor" (default). See "Details" for thmodel is "hom_eqcor" or "het_eqcor", it can be set as "unif" (uniform prior for standard deviation, the default) or "invgamma"prior.type as "invgamma" for model "hom_eqcor" or "het_eqcor". The defaults prior.type as "unif" for model "hom_eqcor" or "het_eqcor". The default is 10."rank.prob" is included in the argument param). TRUE indicates higher sample mean of the continuous outcomn.adapt. This argument and the following n.iter, nn.iter/2.FALSE. If TRUE, n.chains must be greater than 1, and a .txt file, which contains the point estimates of the potential scale reparam (except "rank.prob"), and trace plots of the specified effect sizes will be saved in users' current working dirFALSE.TRUE, a .pdf file containing the density plot will be saved in users' current working directory. The default is FALSE.FALSE.nma.ab.cont returns a list with estimates of effect sizes specified in param. If the argument dic = TRUE, the deviance information criterion (DIC) statistic will be returned in the output list. In addition, if conv.diag = TRUE, a .txt file containing the point estimates of the potential scale reduction factor and their upper confidence limits by Gelman and Rubin (1992) will be saved in users' current working directory. If postdens = TRUE, the posterior densities of treatment-specific absolute risks will be saved as a .pdf file. If trace is specified, the trace plots are saved as .png files.model = "het_cor". Denote $\sigma_{k}$ as the standard deviation of $\nu_{ik}$ and $\mathbf{D} = diag(\sigma_{1}, \ldots, \sigma_{K})$, then the correlation matrix $\mathbf{R}_{K} = \mathbf{D}^{-1} \mathbf{\Sigma}_{K} \mathbf{D}^{-1}$. If we assume that all of the off-diagonal elements in $\mathbf{R}_{K}$ are equal, say to $\rho$, then this model corresponds to model = "het_eqcor". If we further assume the homogeneity of variances of the random effects, that is, $\sigma_{k} = \sigma$ for $k = 1, 2, \ldots, K$, then the model is "hom_eqcor". In addition, for the models "hom_eqcor" and "het_eqcor", setting prior.type as "invgamma" implies using inverse-gamma priors with shape and scale parameters $a, b$ for $\sigma_{k}^2$ or $\sigma^2$, and "unif" implies uniform priors $U(0, c)$ for $\sigma_{k}$ or $\sigma$.nma.ab, nma.ab.py, nma.ab.followupdata(parkinson)
# increase n.iter to reach convergence of MCMC
# increase n.adapt to enhance efficiency
set.seed(1234)
cont.out <- nma.ab.cont(s.id, t.id, mean, sd, n, data = parkinson,
param = c("mu", "diff"), model = "hom_eqcor", prior.type = "unif",
n.adapt = 200, n.iter = 100, n.chains = 1)Run the code above in your browser using DataLab