Skip to content

Commit 5f505e9

Browse files
committed
softlink
1 parent b05ce1a commit 5f505e9

File tree

6 files changed

+31
-5
lines changed

6 files changed

+31
-5
lines changed

_freeze/surveydata5/execute-results/html.json

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

docs/search.json

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

docs/surveydata.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,6 +1296,7 @@ <h2 id="toc-title">Table of contents</h2>
12961296
<li><a href="#nhanes-predicting-cholesterol-level" id="toc-nhanes-predicting-cholesterol-level" class="nav-link" data-scroll-target="#nhanes-predicting-cholesterol-level">NHANES: Predicting cholesterol level</a></li>
12971297
<li><a href="#nhanes-properly-subsetting-a-design-object" id="toc-nhanes-properly-subsetting-a-design-object" class="nav-link" data-scroll-target="#nhanes-properly-subsetting-a-design-object">NHANES: Properly subsetting a design object</a></li>
12981298
<li><a href="#nhanes-reliability-standards" id="toc-nhanes-reliability-standards" class="nav-link" data-scroll-target="#nhanes-reliability-standards">NHANES: Reliability Standards</a></li>
1299+
<li><a href="#nhanes-model-performance" id="toc-nhanes-model-performance" class="nav-link" data-scroll-target="#nhanes-model-performance">NHANES: Model performance</a></li>
12991300
</ul></li>
13001301
</ul>
13011302
</nav>
@@ -1380,6 +1381,10 @@ <h3 class="anchored" data-anchor-id="nhanes-properly-subsetting-a-design-object"
13801381
<section id="nhanes-reliability-standards" class="level3">
13811382
<h3 class="anchored" data-anchor-id="nhanes-reliability-standards"><a href="surveydata9.html">NHANES: Reliability Standards</a></h3>
13821383
<p>This tutorial guides users in replicating key tables from a published article using NHANES data, emphasizing NCHS/CDC reliability standards for complex survey analyses. At first, it created a survey design object with weights, strata, and clusters. For Table 1, the <code>svytable1</code> package generates stratified descriptive summaries in “mixed mode” (unweighted N alongside weighted percentages), stratified by race/ethnicity for overall, male, and female subgroups, with automatic suppression (*) of unreliable estimates based on established rules, ensuring transparency on precision and design effects. Table 3 is reproduced via gender-stratified <code>svyglm</code> logistic regressions, incorporating diagnostics from <code>svyglmdiag()</code> (SE, p-values, CIs) and VIF checks for multicollinearity; results are formatted into a publication-ready table showing odds ratios and 95% CIs.</p>
1384+
</section>
1385+
<section id="nhanes-model-performance" class="level3">
1386+
<h3 class="anchored" data-anchor-id="nhanes-model-performance"><a href="surveydata9c.html">NHANES: Model performance</a></h3>
1387+
<p>This tutorial demonstrates how to evaluate a survey-weighted logistic regression model in R using NHANES data. It guides the user through preparing the data, fitting a design-based logistic regression model to predict obesity from demographic variables, and then assessing its performance. The evaluation uses two primary methods: calculating a design-correct Area Under the Curve (AUC) to measure predictive accuracy and running an Archer-Lemeshow test to assess goodness-of-fit.</p>
13831388
<div class="callout callout-style-default callout-tip callout-titled">
13841389
<div class="callout-header d-flex align-content-center">
13851390
<div class="callout-icon-container">

docs/surveydata5.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,6 +1324,19 @@ <h1 class="title">CCHS: Performance</h1>
13241324

13251325

13261326
</header><p>The tutorial outlines the process for evaluating the performance of logistic regression models fitted to complex survey data using R. It focuses on two major aspects: creating Receiver Operating Characteristic (ROC) curves and conducting Archer and Lemeshow Goodness of Fit tests. Here AUC is a measure to evaluate the predictive accuracy of the model, and Archer and Lemeshow test is a statistical test to evaluate how well your model fits the observed data.</p>
1327+
<div class="callout callout-style-default callout-important callout-titled">
1328+
<div class="callout-header d-flex align-content-center">
1329+
<div class="callout-icon-container">
1330+
<i class="callout-icon"></i>
1331+
</div>
1332+
<div class="callout-title-container flex-fill">
1333+
Important
1334+
</div>
1335+
</div>
1336+
<div class="callout-body-container callout-body">
1337+
<p>See an updated version of this tutorial <a href="surveydata9c.html">here</a> that uses <code>svyTable1</code> package on an NHANES data analysis.</p>
1338+
</div>
1339+
</div>
13271340
<p>We start by importing the required R packages.</p>
13281341
<div class="cell">
13291342
<div class="sourceCode cell-code" id="cb1"><pre class="sourceCode numberSource r number-lines code-with-copy"><code class="sourceCode r"><span id="cb1-1"><a href="#cb1-1"></a><span class="co"># Load required packages</span></span>

surveydata.qmd

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ The tutorial provides a comprehensive guide on how to handle and analyze a subse
5050

5151
### [NHANES: Reliability Standards](surveydata9.html)
5252

53-
This tutorial guides users in replicating key tables from a published article using NHANES data, emphasizing NCHS/CDC reliability standards for complex survey analyses. At first, it created a survey design object with weights, strata, and clusters. For Table 1, the `svytable1` package generates stratified descriptive summaries in "mixed mode" (unweighted N alongside weighted percentages), stratified by race/ethnicity for overall, male, and female subgroups, with automatic suppression (*) of unreliable estimates based on established rules, ensuring transparency on precision and design effects. Table 3 is reproduced via gender-stratified `svyglm` logistic regressions, incorporating diagnostics from `svyglmdiag()` (SE, p-values, CIs) and VIF checks for multicollinearity; results are formatted into a publication-ready table showing odds ratios and 95% CIs.
53+
This tutorial guides users in replicating key tables from a published article using NHANES data, emphasizing NCHS/CDC reliability standards for complex survey analyses. At first, it created a survey design object with weights, strata, and clusters. For Table 1, the `svytable1` package generates stratified descriptive summaries in "mixed mode" (unweighted N alongside weighted percentages), stratified by race/ethnicity for overall, male, and female subgroups, with automatic suppression (\*) of unreliable estimates based on established rules, ensuring transparency on precision and design effects. Table 3 is reproduced via gender-stratified `svyglm` logistic regressions, incorporating diagnostics from `svyglmdiag()` (SE, p-values, CIs) and VIF checks for multicollinearity; results are formatted into a publication-ready table showing odds ratios and 95% CIs.
54+
55+
### [NHANES: Model performance](surveydata9c.html)
56+
57+
This tutorial demonstrates how to evaluate a survey-weighted logistic regression model in R using NHANES data. It guides the user through preparing the data, fitting a design-based logistic regression model to predict obesity from demographic variables, and then assessing its performance. The evaluation uses two primary methods: calculating a design-correct Area Under the Curve (AUC) to measure predictive accuracy and running an Archer-Lemeshow test to assess goodness-of-fit.
5458

5559
::: callout-tip
5660
**Optional Content**:

surveydata5.qmd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
The tutorial outlines the process for evaluating the performance of logistic regression models fitted to complex survey data using R. It focuses on two major aspects: creating Receiver Operating Characteristic (ROC) curves and conducting Archer and Lemeshow Goodness of Fit tests. Here AUC is a measure to evaluate the predictive accuracy of the model, and Archer and Lemeshow test is a statistical test to evaluate how well your model fits the observed data.
44

5+
::: callout-important
6+
See an updated version of this tutorial [here](surveydata9c.html) that uses `svyTable1` package on an NHANES data analysis.
7+
:::
8+
59
We start by importing the required R packages.
610

711
```{r setup, warning=FALSE, message=FALSE, cache=TRUE}

0 commit comments

Comments
 (0)