R/npv.R

Defines functions npv

Documented in npv

#' @export
npv<-function(Cell1, Cell2, Cell3, Cell4){
  NegPredVal<-(Cell3/(Cell3+Cell4))
  SENegPredVal<-1.96*sqrt((NegPredVal*(1-NegPredVal))/(Cell3+Cell4))
  NegPredValLower95<-NegPredVal-SENegPredVal
  NegPredValUpper95<-NegPredVal+SENegPredVal
  message(paste('Negative Predictive Value =',(NegPredVal)))
  message(paste('95% Lower Bound =',(NegPredValLower95)))
  message(paste('95% Upper Bound =',(NegPredValUpper95)))}

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.