R/ppv.R

Defines functions ppv

Documented in ppv

#' @export
ppv<-function(Cell1, Cell2, Cell3, Cell4){
  PosPredVal<-(Cell1/(Cell1+Cell2))
  SEPosPredVal<-1.96*sqrt((PosPredVal*(1-PosPredVal))/(Cell1+Cell2))
  PosPredValLower95<-PosPredVal-SEPosPredVal
  PosPredValUpper95<-PosPredVal+SEPosPredVal
  message(paste('Positive Predictive Value =',(PosPredVal)))
  message(paste('95% Lower Bound =',(PosPredValLower95)))
  message(paste('95% Upper Bound =',(PosPredValUpper95)))}

Try the ClinSigMeasures package in your browser

Any scripts or data that you put into this service are public.

ClinSigMeasures documentation built on Feb. 25, 2021, 5:08 p.m.