Description Usage Arguments Examples
View source: R/hierarchical.plot.R
hierarchical.plot
plots the results from nmadt.hierarchical
and nmadt.hierarchical.MNAR
.Graphics representation includes density plots, forest plots, SROC curves, and contour plots of the results.
1 2 | hierarchical.plot(nstu, K, data, testname, output, directory,
typeofplot = c("density", "forest", "sroc", "contour"), n.chains = 3)
|
nstu |
an integer indicating the number of studies included in the dataset. |
K |
an integer indicating the number of candiate test in the dataset. |
data |
a list conating the input dataset to be used for meta-analysis. |
testname |
a string vector of the names of the candidate tests in the dataset in the same order as presetned in the dataset. |
output |
a list object obtained by function |
directory |
a string specifying the designated directory to save the plots. |
typeofplot |
a string vector containing the types of plot to be generated including "density", "forest","sroc", and "contour". |
n.chains |
a number indicating number of MCMC chains generated using |
1 2 3 4 5 6 | kangdata<-read.csv(file=system.file("extdata","kangdata.csv",package="NMADiagT"),
header=TRUE, sep=",")
set.seed(9)
kang.out <- nmadt.hierarchical(nstu=12, K=2, data=kangdata, testname=c("D-dimer","Ultrasonography"))
hierarchical.plot(nstu=12, K=2, data=kangdata, directory = tempdir(),
testname=c("D-dimer","Ultrasonography"),output=kang.out)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.