README.md

nntcalc: The Number Needed to Treat (NNT) calculator

Valentin Vancak

The nntcalc R-package provides functions to calculate the unadjusted, the conditional (adjusted), and the harmonic mean (marginal) Laupacis NNT with the corresponding 95% confidence intervals. Available regression models include ANOVA, linear regression and logistic regression, and Cox models. In addition, the package provides a function to calculate the estimators of the Kraemer & Kupfer's NNT.

For the installation of nntcalc you need to load first the devtools package by library(devtools), and then type

install_github("https://github.com/vancak/NNTcalculator")

Tha package is called nntcalc. To load it after installation type

library(nntcalc)

For further details and examples please see package manual.

NOTE: The source code for the simulations presented in the manuscript "The Number Needed to Treat Adjusted for Explanatory Variables in Regression and Survival Analysis: Theory and Application" is available here.



vancak/NNTcalculator documentation built on April 7, 2022, 3:48 a.m.