{ "cells": [ { "cell_type": "markdown", "id": "f3f76509-3b83-49f3-9946-e24b92f6ee8c", "metadata": {}, "source": [ "# MIMIC III (Infinite Horizon)\n", "\n", "In this notebook, we conducted analysis on the MIMIC III data with infinite horizon. 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": 5, "id": "a53ca1bf-dae9-4a01-8457-cef602459750", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | icustayid | \n", "bloc | \n", "Glucose | \n", "PaO2_FiO2 | \n", "IV_Input | \n", "SOFA | \n", "next_Glucose | \n", "next_PaO2_FiO2 | \n", "Died_within_48H | \n", "
---|---|---|---|---|---|---|---|---|---|
0 | \n", "1006 | \n", "1 | \n", "91.0 | \n", "206.000000 | \n", "0 | \n", "8 | \n", "91.0 | \n", "206.000000 | \n", "1 | \n", "
1 | \n", "1006 | \n", "3 | \n", "91.0 | \n", "206.000000 | \n", "0 | \n", "8 | \n", "175.0 | \n", "100.173913 | \n", "1 | \n", "
2 | \n", "1006 | \n", "6 | \n", "175.0 | \n", "100.173913 | \n", "1 | \n", "3 | \n", "175.0 | \n", "96.000000 | \n", "1 | \n", "
3 | \n", "1006 | \n", "7 | \n", "175.0 | \n", "96.000000 | \n", "1 | \n", "10 | \n", "175.0 | \n", "96.000000 | \n", "1 | \n", "
4 | \n", "1006 | \n", "8 | \n", "175.0 | \n", "96.000000 | \n", "1 | \n", "9 | \n", "144.0 | \n", "187.234036 | \n", "0 | \n", "