hsroc.plot {NMADiagT} | R Documentation |
Plotting Results from nmadt.hsroc
and nmadt.hsroc.MNAR
Description
hsroc.plot
plots the results from nmadt.hsroc
and nmadt.hsroc.MNAR
.Graphics representation includes density plots, forest plots, SROC curves, and contour plots of the results.
Usage
hsroc.plot(nstu, K, data, testname, output, directory,
typeofplot = c("density", "forest", "sroc", "contour"), n.chains = 3)
Arguments
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 |
Examples
kangdata<-read.csv(file=system.file("extdata","kangdata.csv",package="NMADiagT"),
header=TRUE, sep=",")
set.seed(9)
kang.out.hsroc <- nmadt.hsroc(nstu=12, K=2, data=kangdata, testname=c("D-dimer","Ultrasonography"))
hsroc.plot(nstu=12, K=2, data=kangdata, directory = tempdir(),
testname=c("D-dimer","Ultrasonography"),output=kang.out.hsroc)