/!\ not maintained /!
** This is not anymore a good method too calculate the down probability. Consult a specialist. **
Calculate probability of Down syndrom from maternal age.
This is not anymore a good method too calculate the down probability. Consult a specialist.
French version here : Readme FR
npm i -S down-probability-maternal-age
or yarn
yarn add down-probability-maternal-age
import { calculate } from 'down-probability-maternal-age';
calculate(20, 3);
// {percent: 0.06626905235255136, decimal: 0.0006626905235255136, perBirth: '1/1509'}
- Years : number of years of live,
- Months : number of month of live in current year.
In the example above, mother has 20 years and 3 months.
An object containing :
- Probability in percent,
- Probability in float,
- Syndrome's frequency.
In this sample, frequency is about one case for each 1509 births.
import { calculateFromMonths } from 'down-probability-maternal-age';
calculateFromMonths(526);
// {percent: 3.3333333333333335, decimal: 0.03333333333333333, perBirth: '1/30'}
Here, age of mother is only in months.
So in this sample, mother has 526 months, corresponding to 43 yeas and 10 months.
This function is a proxy of function calculate. So the return is exactly the same.
For the example above, frequency is about 1 case for each 30 births.
WTFPL