hsroc.plot: Plotting Results from 'nmadt.hsroc' and 'nmadt.hsroc.MNAR'

Description Usage Arguments Examples

View source: R/hsroc.plot.R

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

1
2
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 nmadt.hsroc or nmadt.hsroc.MNAR.

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 nmadt.hsroc or nmadt.hsroc.MNAR. The default is 3.

Examples

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.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)

NMADiagT documentation built on Feb. 26, 2020, 9:06 a.m.