Preprocessing Functions in pyAKI
Overview
Before analyzing AKI (Acute Kidney Injury) data, it's essential to preprocess it correctly. pyAKI
provides multiple preprocessing functions to handle time indexing, creatinine levels, urine output, demographics, and renal replacement therapy (RRT) status.
Importing Required Libraries
1 2 3 4 5 6 7 8 |
|
Loading data
The input data includes patient id, event time, weight, urine output, creatinine level and if the patient has undergone RRT or not.
1 2 3 |
|
Time Index Creation
The TimeIndexCreator
ensures that data is properly indexed by time before analysis.
1 2 3 4 |
|
Urine Output Preprocessing
Handles missing or incorrect urine output values.
1 2 3 4 5 6 |
|
Creatinine Preprocessing
Ensures proper handling of creatinine values, including forward-filling missing data.
1 2 3 4 5 6 |
|
Demographics Preprocessing
Processes patient demographic data (age, weight, gender, etc.).
1 2 3 4 |
|
Renal Replacement Therapy (RRT) Preprocessing
Processes RRT status changes.
1 2 3 4 |
|
Running Preprocessing Before Analysis
Before running an analysis, apply the preprocessing steps:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
In case of not specifying Preprocessing, the Analyser will run all five Preprocessings with its default setting.
Extracting Results for a Single Patient
1 2 |
|