pv.gs | R Documentation |
Performs a test for differences in (positive and negative) predictive values of two binary diagnostic tests using a generalized score statistic proposed by Leisenring, Alonzo and Pepe (2000).
pv.gs(tab)
tab |
An object of class |
A list containing:
ppv |
A list with |
npv |
A list with |
method |
The name of the method used to compare predictive values, here “generalized score statistic (gs)”. |
Leisenring, W., Alonzo, T., and Pepe, M. S. (2000). Comparisons of predictive values of binary medical diagnostic tests for paired designs. Biometrics, 56(2):345-51.
pv.wgs
and pv.rpv
.
data(Paired1) # Hypothetical study data
ftable(Paired1)
paired.layout <- tab.paired(d=d, y1=y1, y2=y2, data=Paired1)
paired.layout
gs.results <- pv.gs(paired.layout)
str(gs.results)
gs.results
gs.results$ppv["p.value"]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.