Class EpidemiologyStats
java.lang.Object
org.episteme.natural.medicine.epidemiology.EpidemiologyStats
Epidemiological statistics calculations.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Method Summary
Modifier and TypeMethodDescriptionstatic RealincidenceRate(int newCases, int populationAtRisk) Incidence rate = new cases / population at riskstatic RealnegativePredictiveValue(int trueNegative, int falseNegative) Negative Predictive Value = TN / (TN + FN)static RealnumberNeededToTreat(Real controlEventRate, Real treatmentEventRate) Number Needed to Treat = 1 / ARRstatic RealoddsRatio(int a, int b, int c, int d) Odds ratio from 2x2 contingency table.static RealpositivePredictiveValue(int truePositive, int falsePositive) Positive Predictive Value = TP / (TP + FP)static Realprevalence(int totalCases, int totalPopulation) Prevalence = total cases / total populationstatic RealrelativeRisk(int a, int b, int c, int d) Relative risk.static Realsensitivity(int truePositive, int falseNegative) Sensitivity = TP / (TP + FN)static Realspecificity(int trueNegative, int falsePositive) Specificity = TN / (TN + FP)
-
Method Details
-
incidenceRate
Incidence rate = new cases / population at risk -
prevalence
Prevalence = total cases / total population -
oddsRatio
Odds ratio from 2x2 contingency table. OR = (a*d) / (b*c) -
relativeRisk
Relative risk. RR = (a/(a+b)) / (c/(c+d)) -
sensitivity
Sensitivity = TP / (TP + FN) -
specificity
Specificity = TN / (TN + FP) -
positivePredictiveValue
Positive Predictive Value = TP / (TP + FP) -
negativePredictiveValue
Negative Predictive Value = TN / (TN + FN) -
numberNeededToTreat
-