You could require as bellow: var bcmTestBayes = require('bcmTestBayes').bcmTestBayes
bcmTestBayes(sample, cancerPositive, mammographCancerPositive, mammographPositiveHealt) +++++++++ rules input ++++++++
- sample (What ever number you want)
- cancerPositive (total detected sample has cancer Positive after scanning)
- mammographCancerPositive(detected positive from sample cancer positive)
- mammographPositiveHealt(detected positive from sample cancer negative)
The data from real world you have input, would return presentation probability. How mach probability patient getting cancer with this all group test if patient detected mammograph positive !!!