{ "cells": [ { "cell_type": "markdown", "id": "99b219d1-2f7b-4ca3-8a20-1adeec8fab31", "metadata": {}, "source": [ "# MIMIC III (3-Stages)\n", "\n", "In this notebook, we conducted analysis on the MIMIC III data with 3 stages. We first analyzed the mediation effect and then evaluate the policy of interest and calculated the optimal policy. As informed by the causal structure learning, here we consider Glucose and PaO2_FiO2 as confounders/states, IV_Input as the action, SOFA as the mediator. " ] }, { "cell_type": "code", "execution_count": 1, "id": "51a5e576-f6f2-47c0-a96d-3935d0ee6ca8", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | Glucose_1 | \n", "PaO2_FiO2_1 | \n", "IV_Input_1 | \n", "SOFA_1 | \n", "Glucose_2 | \n", "PaO2_FiO2_2 | \n", "IV_Input_2 | \n", "SOFA_2 | \n", "Glucose_3 | \n", "PaO2_FiO2_3 | \n", "IV_Input_3 | \n", "SOFA_3 | \n", "Died_within_48H | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "116.833333 | \n", "172.000000 | \n", "1 | \n", "9 | \n", "125.666667 | \n", "364.000000 | \n", "1 | \n", "5 | \n", "132.200000 | \n", "439.310339 | \n", "1 | \n", "0 | \n", "1 | \n", "
1 | \n", "120.000000 | \n", "170.000000 | \n", "1 | \n", "5 | \n", "154.000000 | \n", "163.714286 | \n", "1 | \n", "7 | \n", "164.000000 | \n", "174.000000 | \n", "1 | \n", "6 | \n", "1 | \n", "
2 | \n", "123.200000 | \n", "266.000000 | \n", "1 | \n", "8 | \n", "126.400000 | \n", "94.000000 | \n", "1 | \n", "7 | \n", "129.600000 | \n", "91.388889 | \n", "1 | \n", "8 | \n", "0 | \n", "
3 | \n", "168.500000 | \n", "260.833333 | \n", "0 | \n", "3 | \n", "227.000000 | \n", "277.777778 | \n", "1 | \n", "4 | \n", "257.857143 | \n", "191.935482 | \n", "1 | \n", "10 | \n", "0 | \n", "
4 | \n", "115.000000 | \n", "146.000000 | \n", "1 | \n", "7 | \n", "115.000000 | \n", "208.666667 | \n", "1 | \n", "8 | \n", "115.000000 | \n", "210.000000 | \n", "1 | \n", "10 | \n", "1 | \n", "