diff --git a/examples/full_fledged_schema_examples_new/stratification/diabetes_diagnose.ipynb b/examples/full_fledged_schema_examples_new/stratification/diabetes_diagnose.ipynb index e6df577d..def7b20b 100644 --- a/examples/full_fledged_schema_examples_new/stratification/diabetes_diagnose.ipynb +++ b/examples/full_fledged_schema_examples_new/stratification/diabetes_diagnose.ipynb @@ -2,7 +2,25 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "execution_count": 2, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "\u001b[32m\u001b[1m Activating\u001b[22m\u001b[39m project at `~/Documents/Git/StockFlow.jl`\n" + ] + } + ], + "source": [ + "using Pkg;\n", + "Pkg.activate(\"../../..\") # Use StockFlow's Project.toml to ensure correct Catlab and AlgebraicRewriting versions" + ] + }, + { + "cell_type": "code", + "execution_count": 3, "metadata": {}, "outputs": [], "source": [ @@ -27,7 +45,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 4, "metadata": {}, "outputs": [ { @@ -133,7 +151,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 5, "metadata": {}, "outputs": [ { @@ -467,7 +485,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 6, "metadata": {}, "outputs": [ { @@ -641,7 +659,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 7, "metadata": {}, "outputs": [ { @@ -822,7 +840,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 8, "metadata": {}, "outputs": [ { @@ -850,7 +868,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 9, "metadata": {}, "outputs": [], "source": [ @@ -867,7 +885,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 10, "metadata": {}, "outputs": [ { @@ -1308,7 +1326,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 11, "metadata": {}, "outputs": [ { @@ -1577,7 +1595,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 12, "metadata": {}, "outputs": [ { @@ -1608,7 +1626,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 13, "metadata": {}, "outputs": [], "source": [ @@ -1617,7 +1635,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": 14, "metadata": {}, "outputs": [ { @@ -1893,7 +1911,7 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": 15, "metadata": {}, "outputs": [ { @@ -2029,7 +2047,7 @@ " \n", " 10\n", " 10\n", - " f_DiagnoseDiabeticWtComp\n", + " f_DiagnoseDiabeticEarly\n", " \n", " \n", " 11\n", @@ -2059,7 +2077,7 @@ " \n", " \n", " 3\n", - " 10\n", + " 9\n", " 2\n", " \n", " \n", @@ -2120,7 +2138,7 @@ " \n", " \n", " 6\n", - " 10\n", + " 9\n", " 2\n", " \n", " \n", @@ -2463,7 +2481,7 @@ "│\u001b[1m 7 \u001b[0m│ 7 │ f_DeathDiabeticLate │\n", "│\u001b[1m 8 \u001b[0m│ 8 │ f_DiagnosePreDiabetic │\n", "│\u001b[1m 9 \u001b[0m│ 9 │ f_DiagnoseDiabeticWtComp │\n", - "│\u001b[1m 10 \u001b[0m│ 10 │ f_DiagnoseDiabeticWtComp │\n", + "│\u001b[1m 10 \u001b[0m│ 10 │ f_DiagnoseDiabeticEarly │\n", "│\u001b[1m 11 \u001b[0m│ 11 │ f_DiagnoseDiabeticLate │\n", "└────┴────┴──────────────────────────┘\n", "┌───┬─────┬────┐\n", @@ -2471,7 +2489,7 @@ "├───┼─────┼────┤\n", "│\u001b[1m 1 \u001b[0m│ 8 │ 1 │\n", "│\u001b[1m 2 \u001b[0m│ 1 │ 2 │\n", - "│\u001b[1m 3 \u001b[0m│ 10 │ 2 │\n", + "│\u001b[1m 3 \u001b[0m│ 9 │ 2 │\n", "│\u001b[1m 4 \u001b[0m│ 3 │ 3 │\n", "│\u001b[1m 5 \u001b[0m│ 10 │ 3 │\n", "│\u001b[1m 6 \u001b[0m│ 5 │ 4 │\n", @@ -2485,7 +2503,7 @@ "│\u001b[1m 3 \u001b[0m│ 8 │ 1 │\n", "│\u001b[1m 4 \u001b[0m│ 3 │ 2 │\n", "│\u001b[1m 5 \u001b[0m│ 4 │ 2 │\n", - "│\u001b[1m 6 \u001b[0m│ 10 │ 2 │\n", + "│\u001b[1m 6 \u001b[0m│ 9 │ 2 │\n", "│\u001b[1m 7 \u001b[0m│ 5 │ 3 │\n", "│\u001b[1m 8 \u001b[0m│ 6 │ 3 │\n", "│\u001b[1m 9 \u001b[0m│ 10 │ 3 │\n", @@ -2609,7 +2627,7 @@ "\n", " PreDiabetic => f_DiagnosePreDiabetic(v_DiagnosePreDiabetic) => PreDiabetic\n", " DiabeticWtComp => f_DiagnoseDiabeticWtComp(v_DiagnoseDiabeticWtComp) => DiabeticWtComp\n", - " DiabeticEarly => f_DiagnoseDiabeticWtComp(v_DiagnoseDiabeticEarly) => DiabeticEarly\n", + " DiabeticEarly => f_DiagnoseDiabeticEarly(v_DiagnoseDiabeticEarly) => DiabeticEarly\n", " DiabeticLate => f_DiagnoseDiabeticLate(v_DiagnoseDiabeticLate) => DiabeticLate\n", "\n", " :sums\n", @@ -2620,7 +2638,7 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": 16, "metadata": {}, "outputs": [ { @@ -2653,7 +2671,7 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": 17, "metadata": {}, "outputs": [], "source": [ @@ -2662,7 +2680,7 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": 18, "metadata": {}, "outputs": [ { @@ -2674,497 +2692,513 @@ "\n", "\n", - "\n", - "\n", + "\n", + "\n", "G\n", - "\n", + "\n", "\n", "\n", "s1\n", - "\n", - "PreDiabetic\n", + "\n", + "PreDiabetic\n", "\n", "\n", "\n", "v1\n", - "PreDiabetic * rDevelopingDiabetic\n", + "PreDiabetic * rDevelopingDiabetic\n", "\n", "\n", "\n", "s1->v1\n", - "\n", - "\n", - "\n", + "\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s1->v1\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "v4\n", - "PreDiabetic * rMortalityPreDiabetic\n", + "PreDiabetic * rMortalityPreDiabetic\n", "\n", "\n", - "\n", + "\n", "s1->v4\n", - "\n", - "\n", - "\n", + "\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s1->v4\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "v8\n", - "PreDiabetic * rDiagnosePreDiabetic\n", + "PreDiabetic * rDiagnosePreDiabetic\n", "\n", "\n", "\n", "s1->v8\n", - "\n", - "\n", - "\n", + "\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s1->v8\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "sv1\n", - "\n", - "N\n", + "\n", + "N\n", "\n", "\n", - "\n", + "\n", "s1->sv1\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "s2\n", - "\n", - "DiabeticWtComp\n", + "\n", + "DiabeticWtComp\n", "\n", "\n", "\n", "v2\n", - "DiabeticWtComp * rDevelopingEarly\n", + "DiabeticWtComp * rDevelopingEarly\n", "\n", "\n", "\n", "s2->v2\n", - "\n", - "\n", - "\n", + "\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s2->v2\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "v5\n", - "DiabeticWtComp * rMortalityDiabeticWtComp\n", + "DiabeticWtComp * rMortalityDiabeticWtComp\n", "\n", "\n", - "\n", + "\n", "s2->v5\n", - "\n", - "\n", - "\n", + "\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s2->v5\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "v9\n", - "DiabeticWtComp * rDiagnoseDiabeticWtComp\n", + "DiabeticWtComp * rDiagnoseDiabeticWtComp\n", "\n", "\n", - "\n", + "\n", "s2->v9\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "v10\n", - "DiabeticEarly * rDiagnoseDiabeticEarly\n", + "\n", + "\n", + "\n", "\n", - "\n", - "\n", - "s2->v10\n", - "\n", - "\n", - "\n", + "\n", + "\n", + "s2->v9\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s2->sv1\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "s3\n", - "\n", - "DiabeticEarly\n", + "\n", + "DiabeticEarly\n", "\n", "\n", "\n", "v3\n", - "DiabeticEarly * rDevelopingLate\n", + "DiabeticEarly * rDevelopingLate\n", "\n", "\n", - "\n", + "\n", "s3->v3\n", - "\n", - "\n", - "\n", + "\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s3->v3\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "v6\n", - "DiabeticEarly * rMortalityDiabeticEarly\n", + "DiabeticEarly * rMortalityDiabeticEarly\n", "\n", "\n", - "\n", + "\n", "s3->v6\n", - "\n", - "\n", - "\n", + "\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s3->v6\n", - "\n", - "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "v10\n", + "DiabeticEarly * rDiagnoseDiabeticEarly\n", "\n", "\n", - "\n", + "\n", "s3->v10\n", - "\n", - "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "s3->v10\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s3->sv1\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "s4\n", - "\n", - "DiabeticLate\n", + "\n", + "DiabeticLate\n", "\n", "\n", "\n", "v7\n", - "DiabeticLate * rMortalityDiabeticLate\n", + "DiabeticLate * rMortalityDiabeticLate\n", "\n", "\n", - "\n", + "\n", "s4->v7\n", - "\n", - "\n", - "\n", + "\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s4->v7\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "v11\n", - "DiabeticLate * rDiagnoseDiabeticLate\n", + "DiabeticLate * rDiagnoseDiabeticLate\n", "\n", "\n", - "\n", + "\n", "s4->v11\n", - "\n", - "\n", - "\n", + "\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s4->v11\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s4->sv1\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "p1\n", - "\n", - "rDevelopingDiabetic\n", + "\n", + "rDevelopingDiabetic\n", "\n", "\n", - "\n", + "\n", "p1->v1\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "p2\n", - "\n", - "rDevelopingEarly\n", + "\n", + "rDevelopingEarly\n", "\n", "\n", - "\n", + "\n", "p2->v2\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "p3\n", - "\n", - "rDevelopingLate\n", + "\n", + "rDevelopingLate\n", "\n", "\n", - "\n", + "\n", "p3->v3\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "p4\n", - "\n", - "rMortalityPreDiabetic\n", + "\n", + "rMortalityPreDiabetic\n", "\n", "\n", - "\n", + "\n", "p4->v4\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "p5\n", - "\n", - "rMortalityDiabeticEarly\n", + "\n", + "rMortalityDiabeticEarly\n", "\n", "\n", - "\n", + "\n", "p5->v6\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "p6\n", - "\n", - "rMortalityDiabeticLate\n", + "\n", + "rMortalityDiabeticLate\n", "\n", "\n", - "\n", + "\n", "p6->v7\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "p7\n", - "\n", - "rMortalityDiabeticWtComp\n", + "\n", + "rMortalityDiabeticWtComp\n", "\n", "\n", - "\n", + "\n", "p7->v5\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "p8\n", - "\n", - "rDiagnosePreDiabetic\n", + "\n", + "rDiagnosePreDiabetic\n", "\n", "\n", - "\n", + "\n", "p8->v8\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "p9\n", - "\n", - "rDiagnoseDiabeticWtComp\n", + "\n", + "rDiagnoseDiabeticWtComp\n", "\n", "\n", - "\n", + "\n", "p9->v9\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "p10\n", - "\n", - "rDiagnoseDiabeticEarly\n", + "\n", + "rDiagnoseDiabeticEarly\n", "\n", "\n", - "\n", + "\n", "p10->v10\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "p11\n", - "\n", - "rDiagnoseDiabeticLate\n", + "\n", + "rDiagnoseDiabeticLate\n", "\n", "\n", - "\n", + "\n", "p11->v11\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "fs_2d\n", - "\n", + "\n", "\n", "\n", "\n", "fs_4d\n", - "\n", + "\n", "\n", "\n", "\n", "fs_6d\n", - "\n", + "\n", "\n", "\n", "\n", "fs_7d\n", - "\n", + "\n", "\n", "\n", "\n", "v1->s2\n", - "\n", - "\n", - "\n", - "\n", - "f_DevelopingDiabetic\n", + "\n", + "\n", + "\n", + "\n", + "f_DevelopingDiabetic\n", "\n", "\n", "\n", "v2->s3\n", - "\n", - "\n", - "\n", - "\n", - "f_DevelopingEarly\n", + "\n", + "\n", + "\n", + "\n", + "f_DevelopingEarly\n", "\n", "\n", - "\n", + "\n", "v3->s4\n", - "\n", - "\n", - "\n", - "\n", - "f_DevelopingLate\n", + "\n", + "\n", + "\n", + "\n", + "f_DevelopingLate\n", "\n", "\n", - "\n", + "\n", "v4->fs_2d\n", - "\n", - "\n", - "\n", - "\n", - "f_DeathPreDiabetic\n", + "\n", + "\n", + "\n", + "\n", + "f_DeathPreDiabetic\n", "\n", "\n", - "\n", + "\n", "v5->fs_4d\n", - "\n", - "\n", - "\n", - "\n", - "f_DeathDiabeticWtComp\n", + "\n", + "\n", + "\n", + "\n", + "f_DeathDiabeticWtComp\n", "\n", "\n", - "\n", + "\n", "v6->fs_6d\n", - "\n", - "\n", - "\n", - "\n", - "f_DeathDiabeticEarly\n", + "\n", + "\n", + "\n", + "\n", + "f_DeathDiabeticEarly\n", "\n", "\n", - "\n", + "\n", "v7->fs_7d\n", - "\n", - "\n", - "\n", - "\n", - "f_DeathDiabeticLate\n", + "\n", + "\n", + "\n", + "\n", + "f_DeathDiabeticLate\n", "\n", "\n", "\n", "v8->s1\n", - "\n", - "\n", - "\n", - "\n", - "f_DiagnosePreDiabetic\n", + "\n", + "\n", + "\n", + "\n", + "f_DiagnosePreDiabetic\n", "\n", - "\n", + "\n", "\n", - "v10->s2\n", - "\n", - "\n", - "\n", - "\n", - "f_DiagnoseDiabeticWtComp\n", + "v9->s2\n", + "\n", + "\n", + "\n", + "\n", + "f_DiagnoseDiabeticWtComp\n", + "\n", + "\n", + "\n", + "v10->s3\n", + "\n", + "\n", + "\n", + "\n", + "f_DiagnoseDiabeticEarly\n", "\n", "\n", - "\n", + "\n", "v11->s4\n", - "\n", - "\n", - "\n", - "\n", - "f_DiagnoseDiabeticLate\n", + "\n", + "\n", + "\n", + "\n", + "f_DiagnoseDiabeticLate\n", "\n", "\n", "\n" @@ -3183,7 +3217,7 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": 19, "metadata": {}, "outputs": [ { @@ -3390,7 +3424,7 @@ "
\n", " 17\n", " 17\n", - " (:f_strata, :f_DiagnoseDiabeticWtComp)\n", + " (:f_strata, :f_DiagnoseDiabeticEarly)\n", "
\n", "
\n", " 18\n", @@ -3425,7 +3459,7 @@ "
\n", "
\n", " 4\n", - " 17\n", + " 16\n", " 4\n", "
\n", "
\n", @@ -3516,7 +3550,7 @@ "
\n", "
\n", " 10\n", - " 17\n", + " 16\n", " 3\n", "
\n", "
\n", @@ -4036,7 +4070,7 @@ "│\u001b[1m 14 \u001b[0m│ 14 │ (:f_death_D, :f_DeathDiabeticLate) │\n", "│\u001b[1m 15 \u001b[0m│ 15 │ (:f_strata, :f_DiagnosePreDiabetic) │\n", "│\u001b[1m 16 \u001b[0m│ 16 │ (:f_strata, :f_DiagnoseDiabeticWtComp) │\n", - "│\u001b[1m 17 \u001b[0m│ 17 │ (:f_strata, :f_DiagnoseDiabeticWtComp) │\n", + "│\u001b[1m 17 \u001b[0m│ 17 │ (:f_strata, :f_DiagnoseDiabeticEarly) │\n", "│\u001b[1m 18 \u001b[0m│ 18 │ (:f_strata, :f_DiagnoseDiabeticLate) │\n", "└────┴────┴────────────────────────────────────────┘\n", "┌────┬─────┬────┐\n", @@ -4045,7 +4079,7 @@ "│\u001b[1m 1 \u001b[0m│ 15 │ 2 │\n", "│\u001b[1m 2 \u001b[0m│ 1 │ 3 │\n", "│\u001b[1m 3 \u001b[0m│ 2 │ 4 │\n", - "│\u001b[1m 4 \u001b[0m│ 17 │ 4 │\n", + "│\u001b[1m 4 \u001b[0m│ 16 │ 4 │\n", "│\u001b[1m 5 \u001b[0m│ 5 │ 5 │\n", "│\u001b[1m 6 \u001b[0m│ 6 │ 6 │\n", "│\u001b[1m 7 \u001b[0m│ 17 │ 6 │\n", @@ -4065,7 +4099,7 @@ "│\u001b[1m 7 \u001b[0m│ 6 │ 4 │\n", "│\u001b[1m 8 \u001b[0m│ 7 │ 3 │\n", "│\u001b[1m 9 \u001b[0m│ 8 │ 4 │\n", - "│\u001b[1m 10 \u001b[0m│ 17 │ 3 │\n", + "│\u001b[1m 10 \u001b[0m│ 16 │ 3 │\n", "│\u001b[1m 11 \u001b[0m│ 9 │ 5 │\n", "│\u001b[1m 12 \u001b[0m│ 10 │ 6 │\n", "│\u001b[1m 13 \u001b[0m│ 11 │ 5 │\n", @@ -4176,7 +4210,7 @@ }, { "cell_type": "code", - "execution_count": 18, + "execution_count": 20, "metadata": {}, "outputs": [], "source": [ @@ -4188,7 +4222,7 @@ }, { "cell_type": "code", - "execution_count": 19, + "execution_count": 21, "metadata": {}, "outputs": [ { @@ -4200,865 +4234,881 @@ "\n", "\n", - "\n", - "\n", + "\n", + "\n", "G\n", - "\n", + "\n", "\n", "\n", "s1\n", - "\n", - "U\n", - " PreDiabetic\n", + "\n", + "U\n", + " PreDiabetic\n", "\n", "\n", "\n", "v1\n", - "((:*, :*))((:rProgress_U, :rDevelopingDiabetic), (:U, :PreDiabetic))\n", + "((:*, :*))((:rProgress_U, :rDevelopingDiabetic), (:U, :PreDiabetic))\n", "\n", "\n", "\n", "s1->v1\n", - "\n", - "\n", - "\n", + "\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s1->v1\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "v7\n", - "((:*, :*))((:rDeath_U, :rMortalityPreDiabetic), (:U, :PreDiabetic))\n", + "((:*, :*))((:rDeath_U, :rMortalityPreDiabetic), (:U, :PreDiabetic))\n", "\n", "\n", - "\n", + "\n", "s1->v7\n", - "\n", - "\n", - "\n", + "\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s1->v7\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "v15\n", - "((:*, :*))((:rDiagnosis, :rDiagnosePreDiabetic), (:U, :PreDiabetic))\n", + "((:*, :*))((:rDiagnosis, :rDiagnosePreDiabetic), (:U, :PreDiabetic))\n", "\n", "\n", "\n", "s1->v15\n", - "\n", - "\n", - "\n", + "\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s1->v15\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "sv1\n", - "\n", - "N\n", - " N\n", + "\n", + "N\n", + " N\n", "\n", "\n", - "\n", + "\n", "s1->sv1\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "s2\n", - "\n", - "D\n", - " PreDiabetic\n", + "\n", + "D\n", + " PreDiabetic\n", "\n", "\n", "\n", "v2\n", - "((:*, :*))((:rProgress_D, :rDevelopingDiabetic), (:D, :PreDiabetic))\n", + "((:*, :*))((:rProgress_D, :rDevelopingDiabetic), (:D, :PreDiabetic))\n", "\n", "\n", "\n", "s2->v2\n", - "\n", - "\n", - "\n", + "\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s2->v2\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "v8\n", - "((:*, :*))((:rDeath_D, :rMortalityPreDiabetic), (:D, :PreDiabetic))\n", + "((:*, :*))((:rDeath_D, :rMortalityPreDiabetic), (:D, :PreDiabetic))\n", "\n", "\n", - "\n", + "\n", "s2->v8\n", - "\n", - "\n", - "\n", + "\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s2->v8\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s2->sv1\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "s3\n", - "\n", - "U\n", - " DiabeticWtComp\n", + "\n", + "U\n", + " DiabeticWtComp\n", "\n", "\n", "\n", "v3\n", - "((:*, :*))((:rProgress_U, :rDevelopingEarly), (:U, :DiabeticWtComp))\n", + "((:*, :*))((:rProgress_U, :rDevelopingEarly), (:U, :DiabeticWtComp))\n", "\n", "\n", "\n", "s3->v3\n", - "\n", - "\n", - "\n", + "\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s3->v3\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "v9\n", - "((:*, :*))((:rDeath_U, :rMortalityDiabeticWtComp), (:U, :DiabeticWtComp))\n", + "((:*, :*))((:rDeath_U, :rMortalityDiabeticWtComp), (:U, :DiabeticWtComp))\n", "\n", "\n", - "\n", + "\n", "s3->v9\n", - "\n", - "\n", - "\n", + "\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s3->v9\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "v16\n", - "((:*, :*))((:rDiagnosis, :rDiagnoseDiabeticWtComp), (:U, :DiabeticWtComp))\n", + "((:*, :*))((:rDiagnosis, :rDiagnoseDiabeticWtComp), (:U, :DiabeticWtComp))\n", "\n", "\n", - "\n", + "\n", "s3->v16\n", - "\n", - "\n", + "\n", + "\n", + "\n", "\n", - "\n", - "\n", - "v17\n", - "((:*, :*))((:rDiagnosis, :rDiagnoseDiabeticEarly), (:U, :DiabeticEarly))\n", - "\n", - "\n", - "\n", - "s3->v17\n", - "\n", - "\n", - "\n", + "\n", + "\n", + "s3->v16\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s3->sv1\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "s4\n", - "\n", - "D\n", - " DiabeticWtComp\n", + "\n", + "D\n", + " DiabeticWtComp\n", "\n", "\n", "\n", "v4\n", - "((:*, :*))((:rProgress_D, :rDevelopingEarly), (:D, :DiabeticWtComp))\n", + "((:*, :*))((:rProgress_D, :rDevelopingEarly), (:D, :DiabeticWtComp))\n", "\n", "\n", "\n", "s4->v4\n", - "\n", - "\n", - "\n", + "\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s4->v4\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "v10\n", - "((:*, :*))((:rDeath_D, :rMortalityDiabeticWtComp), (:D, :DiabeticWtComp))\n", + "((:*, :*))((:rDeath_D, :rMortalityDiabeticWtComp), (:D, :DiabeticWtComp))\n", "\n", "\n", - "\n", + "\n", "s4->v10\n", - "\n", - "\n", - "\n", + "\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s4->v10\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s4->sv1\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "s5\n", - "\n", - "U\n", - " DiabeticEarly\n", + "\n", + "U\n", + " DiabeticEarly\n", "\n", "\n", "\n", "v5\n", - "((:*, :*))((:rProgress_U, :rDevelopingLate), (:U, :DiabeticEarly))\n", + "((:*, :*))((:rProgress_U, :rDevelopingLate), (:U, :DiabeticEarly))\n", "\n", "\n", - "\n", + "\n", "s5->v5\n", - "\n", - "\n", - "\n", + "\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s5->v5\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "v11\n", - "((:*, :*))((:rDeath_U, :rMortalityDiabeticEarly), (:U, :DiabeticEarly))\n", + "((:*, :*))((:rDeath_U, :rMortalityDiabeticEarly), (:U, :DiabeticEarly))\n", "\n", "\n", - "\n", + "\n", "s5->v11\n", - "\n", - "\n", - "\n", + "\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s5->v11\n", - "\n", - "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "v17\n", + "((:*, :*))((:rDiagnosis, :rDiagnoseDiabeticEarly), (:U, :DiabeticEarly))\n", "\n", "\n", - "\n", + "\n", "s5->v17\n", - "\n", - "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "s5->v17\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s5->sv1\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "s6\n", - "\n", - "D\n", - " DiabeticEarly\n", + "\n", + "D\n", + " DiabeticEarly\n", "\n", "\n", "\n", "v6\n", - "((:*, :*))((:rProgress_D, :rDevelopingLate), (:D, :DiabeticEarly))\n", + "((:*, :*))((:rProgress_D, :rDevelopingLate), (:D, :DiabeticEarly))\n", "\n", "\n", - "\n", + "\n", "s6->v6\n", - "\n", - "\n", - "\n", + "\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s6->v6\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "v12\n", - "((:*, :*))((:rDeath_D, :rMortalityDiabeticEarly), (:D, :DiabeticEarly))\n", + "((:*, :*))((:rDeath_D, :rMortalityDiabeticEarly), (:D, :DiabeticEarly))\n", "\n", "\n", - "\n", + "\n", "s6->v12\n", - "\n", - "\n", - "\n", + "\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s6->v12\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s6->sv1\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "s7\n", - "\n", - "U\n", - " DiabeticLate\n", + "\n", + "U\n", + " DiabeticLate\n", "\n", "\n", "\n", "v13\n", - "((:*, :*))((:rDeath_U, :rMortalityDiabeticLate), (:U, :DiabeticLate))\n", + "((:*, :*))((:rDeath_U, :rMortalityDiabeticLate), (:U, :DiabeticLate))\n", "\n", "\n", - "\n", + "\n", "s7->v13\n", - "\n", - "\n", - "\n", + "\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s7->v13\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "v18\n", - "((:*, :*))((:rDiagnosis, :rDiagnoseDiabeticLate), (:U, :DiabeticLate))\n", + "((:*, :*))((:rDiagnosis, :rDiagnoseDiabeticLate), (:U, :DiabeticLate))\n", "\n", "\n", - "\n", + "\n", "s7->v18\n", - "\n", - "\n", - "\n", + "\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s7->v18\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s7->sv1\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "s8\n", - "\n", - "D\n", - " DiabeticLate\n", + "\n", + "D\n", + " DiabeticLate\n", "\n", "\n", "\n", "v14\n", - "((:*, :*))((:rDeath_D, :rMortalityDiabeticLate), (:D, :DiabeticLate))\n", + "((:*, :*))((:rDeath_D, :rMortalityDiabeticLate), (:D, :DiabeticLate))\n", "\n", "\n", - "\n", + "\n", "s8->v14\n", - "\n", - "\n", - "\n", + "\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s8->v14\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", - "\n", + "\n", "s8->sv1\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "p1\n", - "\n", - "rProgress_U\n", - " rDevelopingDiabetic\n", + "\n", + "rProgress_U\n", + " rDevelopingDiabetic\n", "\n", "\n", - "\n", + "\n", "p1->v1\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "p2\n", - "\n", - "rProgress_D\n", - " rDevelopingDiabetic\n", + "\n", + "rProgress_D\n", + " rDevelopingDiabetic\n", "\n", "\n", - "\n", + "\n", "p2->v2\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "p3\n", - "\n", - "rProgress_U\n", - " rDevelopingEarly\n", + "\n", + "rProgress_U\n", + " rDevelopingEarly\n", "\n", "\n", - "\n", + "\n", "p3->v3\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "p4\n", - "\n", - "rProgress_D\n", - " rDevelopingEarly\n", + "\n", + "rProgress_D\n", + " rDevelopingEarly\n", "\n", "\n", - "\n", + "\n", "p4->v4\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "p5\n", - "\n", - "rProgress_U\n", - " rDevelopingLate\n", + "\n", + "rProgress_U\n", + " rDevelopingLate\n", "\n", "\n", - "\n", + "\n", "p5->v5\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "p6\n", - "\n", - "rProgress_D\n", - " rDevelopingLate\n", + "\n", + "rProgress_D\n", + " rDevelopingLate\n", "\n", "\n", - "\n", + "\n", "p6->v6\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "p7\n", - "\n", - "rDeath_U\n", - " rMortalityPreDiabetic\n", + "\n", + "rDeath_U\n", + " rMortalityPreDiabetic\n", "\n", "\n", - "\n", + "\n", "p7->v7\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "p8\n", - "\n", - "rDeath_D\n", - " rMortalityPreDiabetic\n", + "\n", + "rDeath_D\n", + " rMortalityPreDiabetic\n", "\n", "\n", - "\n", + "\n", "p8->v8\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "p9\n", - "\n", - "rDeath_U\n", - " rMortalityDiabeticEarly\n", + "\n", + "rDeath_U\n", + " rMortalityDiabeticEarly\n", "\n", "\n", - "\n", + "\n", "p9->v11\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "p10\n", - "\n", - "rDeath_D\n", - " rMortalityDiabeticEarly\n", + "\n", + "rDeath_D\n", + " rMortalityDiabeticEarly\n", "\n", "\n", - "\n", + "\n", "p10->v12\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "p11\n", - "\n", - "rDeath_U\n", - " rMortalityDiabeticLate\n", + "\n", + "rDeath_U\n", + " rMortalityDiabeticLate\n", "\n", "\n", - "\n", + "\n", "p11->v13\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "p12\n", - "\n", - "rDeath_D\n", - " rMortalityDiabeticLate\n", + "\n", + "rDeath_D\n", + " rMortalityDiabeticLate\n", "\n", "\n", - "\n", + "\n", "p12->v14\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "p13\n", - "\n", - "rDeath_U\n", - " rMortalityDiabeticWtComp\n", + "\n", + "rDeath_U\n", + " rMortalityDiabeticWtComp\n", "\n", "\n", - "\n", + "\n", "p13->v9\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "p14\n", - "\n", - "rDeath_D\n", - " rMortalityDiabeticWtComp\n", + "\n", + "rDeath_D\n", + " rMortalityDiabeticWtComp\n", "\n", "\n", - "\n", + "\n", "p14->v10\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "p15\n", - "\n", - "rDiagnosis\n", - " rDiagnosePreDiabetic\n", + "\n", + "rDiagnosis\n", + " rDiagnosePreDiabetic\n", "\n", "\n", - "\n", + "\n", "p15->v15\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "p16\n", - "\n", - "rDiagnosis\n", - " rDiagnoseDiabeticWtComp\n", + "\n", + "rDiagnosis\n", + " rDiagnoseDiabeticWtComp\n", "\n", "\n", - "\n", + "\n", "p16->v16\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "p17\n", - "\n", - "rDiagnosis\n", - " rDiagnoseDiabeticEarly\n", + "\n", + "rDiagnosis\n", + " rDiagnoseDiabeticEarly\n", "\n", "\n", - "\n", + "\n", "p17->v17\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "p18\n", - "\n", - "rDiagnosis\n", - " rDiagnoseDiabeticLate\n", + "\n", + "rDiagnosis\n", + " rDiagnoseDiabeticLate\n", "\n", "\n", - "\n", + "\n", "p18->v18\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n", "fs_3d\n", - "\n", + "\n", "\n", "\n", "\n", "fs_4d\n", - "\n", + "\n", "\n", "\n", "\n", "fs_7d\n", - "\n", + "\n", "\n", "\n", "\n", "fs_8d\n", - "\n", + "\n", "\n", "\n", "\n", "fs_11d\n", - "\n", + "\n", "\n", "\n", "\n", "fs_12d\n", - "\n", + "\n", "\n", "\n", "\n", "fs_13d\n", - "\n", + "\n", "\n", "\n", "\n", "fs_14d\n", - "\n", + "\n", "\n", "\n", "\n", "v1->s3\n", - "\n", - "\n", - "\n", - "\n", - "f_progress_U\n", + "\n", + "\n", + "\n", + "\n", + "f_progress_U\n", "\n", "\n", "\n", "v2->s4\n", - "\n", - "\n", - "\n", - "\n", - "f_progress_D\n", + "\n", + "\n", + "\n", + "\n", + "f_progress_D\n", "\n", "\n", "\n", "v3->s5\n", - "\n", - "\n", - "\n", - "\n", - "f_progress_U\n", + "\n", + "\n", + "\n", + "\n", + "f_progress_U\n", "\n", "\n", "\n", "v4->s6\n", - "\n", - "\n", - "\n", - "\n", - "f_progress_D\n", + "\n", + "\n", + "\n", + "\n", + "f_progress_D\n", "\n", "\n", - "\n", + "\n", "v5->s7\n", - "\n", - "\n", - "\n", - "\n", - "f_progress_U\n", + "\n", + "\n", + "\n", + "\n", + "f_progress_U\n", "\n", "\n", - "\n", + "\n", "v6->s8\n", - "\n", - "\n", - "\n", - "\n", - "f_progress_D\n", + "\n", + "\n", + "\n", + "\n", + "f_progress_D\n", "\n", "\n", - "\n", + "\n", "v7->fs_3d\n", - "\n", - "\n", - "\n", - "\n", - "f_death_U\n", + "\n", + "\n", + "\n", + "\n", + "f_death_U\n", "\n", "\n", - "\n", + "\n", "v8->fs_4d\n", - "\n", - "\n", - "\n", - "\n", - "f_death_D\n", + "\n", + "\n", + "\n", + "\n", + "f_death_D\n", "\n", "\n", - "\n", + "\n", "v9->fs_7d\n", - "\n", - "\n", - "\n", - "\n", - "f_death_U\n", + "\n", + "\n", + "\n", + "\n", + "f_death_U\n", "\n", "\n", - "\n", + "\n", "v10->fs_8d\n", - "\n", - "\n", - "\n", - "\n", - "f_death_D\n", + "\n", + "\n", + "\n", + "\n", + "f_death_D\n", "\n", "\n", - "\n", + "\n", "v11->fs_11d\n", - "\n", - "\n", - "\n", - "\n", - "f_death_U\n", + "\n", + "\n", + "\n", + "\n", + "f_death_U\n", "\n", "\n", - "\n", + "\n", "v12->fs_12d\n", - "\n", - "\n", - "\n", - "\n", - "f_death_D\n", + "\n", + "\n", + "\n", + "\n", + "f_death_D\n", "\n", "\n", - "\n", + "\n", "v13->fs_13d\n", - "\n", - "\n", - "\n", - "\n", - "f_death_U\n", + "\n", + "\n", + "\n", + "\n", + "f_death_U\n", "\n", "\n", - "\n", + "\n", "v14->fs_14d\n", - "\n", - "\n", - "\n", - "\n", - "f_death_D\n", + "\n", + "\n", + "\n", + "\n", + "f_death_D\n", "\n", "\n", "\n", "v15->s2\n", - "\n", - "\n", - "\n", - "\n", - "f_strata\n", + "\n", + "\n", + "\n", + "\n", + "f_strata\n", "\n", - "\n", + "\n", "\n", - "v17->s4\n", - "\n", - "\n", - "\n", - "\n", - "f_strata\n", + "v16->s4\n", + "\n", + "\n", + "\n", + "\n", + "f_strata\n", + "\n", + "\n", + "\n", + "v17->s6\n", + "\n", + "\n", + "\n", + "\n", + "f_strata\n", "\n", "\n", - "\n", + "\n", "v18->s8\n", - "\n", - "\n", - "\n", - "\n", - "f_strata\n", + "\n", + "\n", + "\n", + "\n", + "f_strata\n", "\n", "\n", "\n" @@ -5078,7 +5128,7 @@ }, { "cell_type": "code", - "execution_count": 20, + "execution_count": 22, "metadata": {}, "outputs": [ { @@ -5113,7 +5163,7 @@ }, { "cell_type": "code", - "execution_count": 21, + "execution_count": 23, "metadata": {}, "outputs": [], "source": []