Skip to main content

z-scores of anthropometric measurements of children below 5 years based on WHO

Project description

Z score

This libray is Used for measuring Z score of Children (0-5 Years) based on standard provided by WHO 2006

Latest Version https://img.shields.io/pypi/wheel/cgmzscore.svg https://img.shields.io/pypi/pyversions/cgmzscore.svg banner

REQUIREMENTS

  • Python 2.7.x, Python 3.x or later

INSTALLATION

pip install cgmzscore

EXAMPLE USAGE

applying functions on CGM datasets:

from cgmzscore.src.main import z_score_with_class
import ast

df["sex"] = df["sex"].map({"male": "M", "female": "F"})
df["metrics"] = df.apply(lambda row: z_score_with_class(weight=row["weight"], height=row["height"], muac=row["muac"], age_in_days=row["age"], sex=row["sex"]), axis=1)
df["metrics"] = df["metrics"].apply(ast.literal_eval)
for col in df.metrics[0].keys():
    df[col] = df["metrics"].apply(lambda x: x[col])
df = df.drop("metrics", axis=1)

calculate z score for weight vs age

from cgmzscore.src.main import z_score_wfa

score = z_score_wfa(weight="7.853",age_in_days='16',sex='M')

calculate z score for weight vs length/height

from cgmzscore.src.main import z_score_wfl

score = z_score_wfl(weight="7.853",age_in_days='16',sex='M',height='73')

calculate z score for weight vs length/height and both wfl and wfh works same

from cgmzscore.src.main import z_score_wfh

score = z_score_wfh(weight="7.853",age_in_days='16',sex='M',height='73')

calculate z score for length vs age

from cgmzscore.src.main import z_score_lhfa

score = z_score_lhfa(age_in_days='16',sex='M',height='73')

compute all z scores and corresponding diagnoses at once

from cgmzscore.src.main import z_score_with_class

score = z_score_with_class(weight="7.853", muac="13.5", age_in_days='16', sex='M', height='73')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

cgmzscore-3.3.0-py3-none-any.whl (430.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page