The Body Shape Age Calculator is a web application that calculates the predicted age based on the Body Shape Index (ABSI). The ABSI is calculated by dividing waist circumference by its estimate obtained from allometric regression of weight and height. The corresponding mortality risks are converted into loss/gain of years.
The calculator takes inputs such as sex, age, standing height, weight, and waist circumference, and uses them to calculate the ABSI and predict the age based on mortality risks. The ABSI calculations and predictive formulas are based on the research papers:
- A New Body Shape Index Predicts Mortality Hazard Independently of Body Mass Index by N. Y. Krakauer and J. C. Krakauer.
- An Anthropometric Risk Index Based on Combining Height, Weight, Waist, and Hip Measurements by N. Y. Krakauer and J. C. Krakauer.
To run the Body Shape Age Calculator locally, follow these steps:
- Clone the repository.
- Make sure you have the
shiny
andjsonlite
packages installed. You can install them by runninginstall.packages(c("shiny", "jsonlite"))
. - Place the
ABSI_mean_std.json
file in the same directory as the R files. - Run the
app.R
file using an R development environment or by runningshiny::runApp('app.R')
in the R console. - Access the application in your web browser at the provided URL.
- shiny
- jsonlite
This project is licensed under the MIT License.