Skip to content

Commit

Permalink
Built site for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Quarto GHA Workflow Runner committed Jan 22, 2024
1 parent 5e18de8 commit 9dd7d48
Show file tree
Hide file tree
Showing 5 changed files with 274 additions and 270 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a91c462a
af710a48
30 changes: 15 additions & 15 deletions 01-introduccion.html
Original file line number Diff line number Diff line change
Expand Up @@ -287,27 +287,27 @@ <h3 class="unnumbered anchored" data-anchor-id="ejemplo-cálculos-renales">Ejemp
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">B</td>
<td style="text-align: left;">chicos</td>
<td style="text-align: left;">A</td>
<td style="text-align: left;">grandes</td>
<td style="text-align: left;">mejora</td>
</tr>
<tr class="even">
<td style="text-align: left;">A</td>
<td style="text-align: left;">grandes</td>
<td style="text-align: left;">B</td>
<td style="text-align: left;">chicos</td>
<td style="text-align: left;">mejora</td>
</tr>
<tr class="odd">
<td style="text-align: left;">A</td>
<td style="text-align: left;">B</td>
<td style="text-align: left;">grandes</td>
<td style="text-align: left;">mejora</td>
</tr>
<tr class="even">
<td style="text-align: left;">A</td>
<td style="text-align: left;">grandes</td>
<td style="text-align: left;">sin_mejora</td>
<td style="text-align: left;">chicos</td>
<td style="text-align: left;">mejora</td>
</tr>
<tr class="odd">
<td style="text-align: left;">A</td>
<td style="text-align: left;">B</td>
<td style="text-align: left;">grandes</td>
<td style="text-align: left;">sin_mejora</td>
</tr>
Expand All @@ -322,13 +322,13 @@ <h3 class="unnumbered anchored" data-anchor-id="ejemplo-cálculos-renales">Ejemp
<td style="text-align: left;">mejora</td>
</tr>
<tr class="even">
<td style="text-align: left;">B</td>
<td style="text-align: left;">A</td>
<td style="text-align: left;">grandes</td>
<td style="text-align: left;">mejora</td>
<td style="text-align: left;">sin_mejora</td>
</tr>
<tr class="odd">
<td style="text-align: left;">B</td>
<td style="text-align: left;">chicos</td>
<td style="text-align: left;">grandes</td>
<td style="text-align: left;">mejora</td>
</tr>
<tr class="even">
Expand Down Expand Up @@ -578,8 +578,8 @@ <h3 class="unnumbered anchored" data-anchor-id="ejemplo-cálculos-renales">Ejemp
<span id="cb8-14"><a href="#cb8-14" aria-hidden="true" tabindex="-1"></a><span class="st">"</span>, <span class="at">width =</span> <span class="dv">200</span>, <span class="at">height =</span> <span class="dv">50</span>)</span></code><button title="Copiar al portapapeles" class="code-copy-button"><i class="bi"></i></button></pre></div>
</details>
<div class="cell-output-display">
<div id="htmlwidget-89412e36cc3500604f86" style="width:100%;height:162px;" class="grViz html-widget"></div>
<script type="application/json" data-for="htmlwidget-89412e36cc3500604f86">{"x":{"diagram":"\ndigraph {\n graph [ranksep = 0.2]\n node [shape=plaintext]\n T \n M \n C\n edge [minlen = 3]\n T -> M\n C -> T\n C -> M\n{ rank = same; M; T }\n}\n","config":{"engine":"dot","options":null}},"evals":[],"jsHooks":[]}</script>
<div id="htmlwidget-f45c93f838fc2e7091d4" style="width:100%;height:162px;" class="grViz html-widget"></div>
<script type="application/json" data-for="htmlwidget-f45c93f838fc2e7091d4">{"x":{"diagram":"\ndigraph {\n graph [ranksep = 0.2]\n node [shape=plaintext]\n T \n M \n C\n edge [minlen = 3]\n T -> M\n C -> T\n C -> M\n{ rank = same; M; T }\n}\n","config":{"engine":"dot","options":null}},"evals":[],"jsHooks":[]}</script>
</div>
</div>
<p>Es decir, el tamaño de los cálculos es una causa común de tratamiento (T) y resultado (M). Veremos más adelante que la decisión de condicionar a el tipo de cálculos proviene de un análisis relativamente simple de este diagrama causal, independientemente de los métodos que usemos para estimar las proporciones de interés (en este ejemplo, examinar las tablas cruzadas es equivalente a hacer estimaciones de máxima verosimlitud).</p>
Expand Down Expand Up @@ -696,8 +696,8 @@ <h3 class="unnumbered anchored" data-anchor-id="ejemplo-cálculos-renales-2">Eje
<span id="cb11-14"><a href="#cb11-14" aria-hidden="true" tabindex="-1"></a><span class="st">"</span>, <span class="at">width =</span> <span class="dv">200</span>, <span class="at">height =</span> <span class="dv">50</span>)</span></code><button title="Copiar al portapapeles" class="code-copy-button"><i class="bi"></i></button></pre></div>
</details>
<div class="cell-output-display">
<div id="htmlwidget-e4c0b4a67e649d95c852" style="width:100%;height:162px;" class="grViz html-widget"></div>
<script type="application/json" data-for="htmlwidget-e4c0b4a67e649d95c852">{"x":{"diagram":"\ndigraph {\n graph [ranksep = 0.2]\n node [shape=plaintext]\n P\n T \n M \n edge [minlen = 3]\n T -> P\n P -> M\n T -> M\n{ rank = same; M; T}\n}\n","config":{"engine":"dot","options":null}},"evals":[],"jsHooks":[]}</script>
<div id="htmlwidget-fb8cd8e3e6bffcf2f85d" style="width:100%;height:162px;" class="grViz html-widget"></div>
<script type="application/json" data-for="htmlwidget-fb8cd8e3e6bffcf2f85d">{"x":{"diagram":"\ndigraph {\n graph [ranksep = 0.2]\n node [shape=plaintext]\n P\n T \n M \n edge [minlen = 3]\n T -> P\n P -> M\n T -> M\n{ rank = same; M; T}\n}\n","config":{"engine":"dot","options":null}},"evals":[],"jsHooks":[]}</script>
</div>
</div>
<p>Nótese que el análisis más apropiado no está en los datos: en ambos casos la tabla de datos es exactamente la misma. Los supuestos acerca del proceso que genera los datos sin embargo nos lleva a respuestas opuestas.</p>
Expand Down
8 changes: 4 additions & 4 deletions 02-flujo-basico-2.html
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ <h3 data-number="3.1.1" class="anchored" data-anchor-id="paso-1-modelo-generativ
<span id="cb1-28"><a href="#cb1-28" aria-hidden="true" tabindex="-1"></a><span class="st">"</span>)<span class="co">#, width = 200, height = 50)</span></span></code><button title="Copiar al portapapeles" class="code-copy-button"><i class="bi"></i></button></pre></div>
</details>
<div class="cell-output-display">
<div class="grViz html-widget html-fill-item" id="htmlwidget-a791de51c99bbb2a9d74" style="width:100%;height:480px;"></div>
<script type="application/json" data-for="htmlwidget-a791de51c99bbb2a9d74">{"x":{"diagram":"\ndigraph {\n graph [ranksep = 0.3, rankdir = LR]\n node [shape=circle]\n p\n Npos\n node [shape=plaintext]\n N\n Npos [label = <N<SUB>+<\/SUB>>]\n Nobs [label = <N<SUB>obs<\/SUB>>]\n #Nneg [label = <N<SUB>-<\/SUB>>]\n #sens\n #esp\n edge [minlen = 3]\n p -> Npos\n #p -> Nneg\n N -> Npos\n Npos -> Nobs\n #N -> Nneg\n esp -> Nobs\n sens -> Nobs\n #esp -> Nneg\n #sens -> Nneg\n{ rank = same; p; N }\n{ rank = same; Npos}\n{ rank = max; sens; esp}\n}\n","config":{"engine":"dot","options":null}},"evals":[],"jsHooks":[]}</script>
<div class="grViz html-widget html-fill-item" id="htmlwidget-5ec405e328fa6dc0fffb" style="width:100%;height:480px;"></div>
<script type="application/json" data-for="htmlwidget-5ec405e328fa6dc0fffb">{"x":{"diagram":"\ndigraph {\n graph [ranksep = 0.3, rankdir = LR]\n node [shape=circle]\n p\n Npos\n node [shape=plaintext]\n N\n Npos [label = <N<SUB>+<\/SUB>>]\n Nobs [label = <N<SUB>obs<\/SUB>>]\n #Nneg [label = <N<SUB>-<\/SUB>>]\n #sens\n #esp\n edge [minlen = 3]\n p -> Npos\n #p -> Nneg\n N -> Npos\n Npos -> Nobs\n #N -> Nneg\n esp -> Nobs\n sens -> Nobs\n #esp -> Nneg\n #sens -> Nneg\n{ rank = same; p; N }\n{ rank = same; Npos}\n{ rank = max; sens; esp}\n}\n","config":{"engine":"dot","options":null}},"evals":[],"jsHooks":[]}</script>
</div>
</div>
<p>Donde vemos ahora que el estado real de cada persona de la prueba es desconocido, aunque el resultado de la prueba depende de ese estado, y la cantidad de positivos que observamos es ahora <span class="math inline">\(N_{obs}\)</span>, que depende también de la sensibilidad y especificidad de la prueba.</p>
Expand Down Expand Up @@ -475,8 +475,8 @@ <h2 data-number="3.2" class="anchored" data-anchor-id="prevalencia-con-datos-de-
<span id="cb17-28"><a href="#cb17-28" aria-hidden="true" tabindex="-1"></a><span class="st">"</span>)<span class="co">#, width = 200, height = 50)</span></span></code><button title="Copiar al portapapeles" class="code-copy-button"><i class="bi"></i></button></pre></div>
</details>
<div class="cell-output-display">
<div class="grViz html-widget html-fill-item" id="htmlwidget-cf7bd01516d86d97fff9" style="width:100%;height:480px;"></div>
<script type="application/json" data-for="htmlwidget-cf7bd01516d86d97fff9">{"x":{"diagram":"\ndigraph {\n graph [ranksep = 0.3, rankdir = LR]\n node [shape=circle]\n theta\n esp\n sens\n Npos [label = <N<SUB>+<\/SUB>>]\n node [shape=plaintext]\n Nobs [label = <N<SUB>obs<\/SUB>>]\n # Nneg [label = <N<SUB>-<\/SUB>>]\n edge [minlen = 3]\n theta -> Npos\n #p -> Nneg\n N -> Npos\n Npos -> Nobs\n #N -> Nneg\n esp -> Nobs\n sens -> Nobs\n #esp -> Nneg\n #sens -> Nneg\n esp -> Ref\n sens -> Ref\n{ rank = same; theta; N }\n#{ rank = same; Npos; Nneg}\n{ rank = max; sens; esp}\n}\n","config":{"engine":"dot","options":null}},"evals":[],"jsHooks":[]}</script>
<div class="grViz html-widget html-fill-item" id="htmlwidget-479ad99666a35699e604" style="width:100%;height:480px;"></div>
<script type="application/json" data-for="htmlwidget-479ad99666a35699e604">{"x":{"diagram":"\ndigraph {\n graph [ranksep = 0.3, rankdir = LR]\n node [shape=circle]\n theta\n esp\n sens\n Npos [label = <N<SUB>+<\/SUB>>]\n node [shape=plaintext]\n Nobs [label = <N<SUB>obs<\/SUB>>]\n # Nneg [label = <N<SUB>-<\/SUB>>]\n edge [minlen = 3]\n theta -> Npos\n #p -> Nneg\n N -> Npos\n Npos -> Nobs\n #N -> Nneg\n esp -> Nobs\n sens -> Nobs\n #esp -> Nneg\n #sens -> Nneg\n esp -> Ref\n sens -> Ref\n{ rank = same; theta; N }\n#{ rank = same; Npos; Nneg}\n{ rank = max; sens; esp}\n}\n","config":{"engine":"dot","options":null}},"evals":[],"jsHooks":[]}</script>
</div>
</div>
<p>Por los argumentos de arriba, las distribuciones de esp y sens son beta y podemos incorporarlas en la simulación de la posterior. Nuestra nueva función para simular el proceso generativo es:</p>
Expand Down
Loading

0 comments on commit 9dd7d48

Please sign in to comment.