Skip to content

Commit

Permalink
nsduh
Browse files Browse the repository at this point in the history
  • Loading branch information
ajdamico committed Dec 12, 2024
1 parent 9db2593 commit 3888147
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
12 changes: 6 additions & 6 deletions docs/national-survey-on-drug-use-and-health-nsduh.html
Original file line number Diff line number Diff line change
Expand Up @@ -1207,14 +1207,14 @@ <h2>Recommended Reading<a href="national-survey-on-drug-use-and-health-nsduh.htm
<p>Four Example Strengths &amp; Limitations:</p>
<p>✔️ <a href="https://www.samhsa.gov/data/sites/default/files/reports/rpt39458/2023NSDUHmrbWebCAISpecs013123.pdf#page=3">Detailed questions about substance use and mental health</a></p>
<p>✔️ <a href="https://www.samhsa.gov/data/nsduh/state-reports-NSDUH-2022">Restricted data can be pooled for state estimates</a></p>
<p><a href="https://doi.org/10.1073/pnas.2207391120">Traditional surveillance systems have considerable lags associated with the cycle of data collection, organization, and release</a></p>
<p><a href="https://doi.org/10.1073/pnas.2207391120">Traditional surveillance systems have lags associated with data collection, organization, and release</a></p>
<p><a href="https://www.samhsa.gov/data/taxonomy/term/1244#term-1272">Data from 2021 should not be compared to estimates from 2019 or earlier</a></p>
<p><br></p>
<p>Three Example Findings:</p>
<ol style="list-style-type: decimal">
<li><p><a href="http://doi.org/10.1056/NEJMoa1813751">Across 2002-2014, 36% of adolescents and young adults with ADHD used cannibis in the past month</a>.</p></li>
<li><p><a href="http://doi.org/10.3386/w31884">In 2021, 23% of older adults with past−year non−medical opioid use received public assistance and only 42% reported very good or excellent health vs. 16% and 68% among older adults without such use</a>.</p></li>
<li><p><a href="https://www.samhsa.gov/data/release/2023-national-survey-drug-use-and-health-nsduh-releases#highlights">In 2023, 7.4% of adolescents aged 12 to 17 (or 1.9 million people) used tobacco products or vaped nicotine in the past month</a>.</p></li>
<li><p><a href="http://doi.org/10.1056/NEJMoa1813751">Across 2002-2014, 36% of Americans aged 13-25 with ADHD used cannibis in the past month</a>.</p></li>
<li><p><a href="http://doi.org/10.3386/w31884">In 2021, 23% of older adults with past−year non−medical opioid use received public assistance and only 42% reported very good or excellent health vs. 16% and 68% among those without such use</a>.</p></li>
<li><p><a href="https://www.samhsa.gov/data/release/2023-national-survey-drug-use-and-health-nsduh-releases#highlights">Among Americans aged 12 to 17 in 2023, 7% used tobacco products or vaped nicotine in the past month</a>.</p></li>
</ol>
<p><br></p>
<p>Two Methodology Documents:</p>
Expand Down Expand Up @@ -1245,7 +1245,7 @@ <h2>Download, Import, Preparation<a href="national-survey-on-drug-use-and-health
<span id="cb878-9"><a href="national-survey-on-drug-use-and-health-nsduh.html#cb878-9" tabindex="-1"></a></span>
<span id="cb878-10"><a href="national-survey-on-drug-use-and-health-nsduh.html#cb878-10" tabindex="-1"></a>nsduh_rdata_contents <span class="ot">&lt;-</span> <span class="fu">load</span>( nsduh_rdata )</span>
<span id="cb878-11"><a href="national-survey-on-drug-use-and-health-nsduh.html#cb878-11" tabindex="-1"></a></span>
<span id="cb878-12"><a href="national-survey-on-drug-use-and-health-nsduh.html#cb878-12" tabindex="-1"></a>nsduh_df_name <span class="ot">&lt;-</span> <span class="fu">grep</span>( <span class="st">&#39;PUF&#39;</span> , nsduh_rdata_contents , <span class="at">value =</span> <span class="cn">TRUE</span> )</span>
<span id="cb878-12"><a href="national-survey-on-drug-use-and-health-nsduh.html#cb878-12" tabindex="-1"></a>nsduh_df_name <span class="ot">&lt;-</span> <span class="fu">grep</span>( <span class="st">&#39;PUF&#39;</span> , nsduh_rdata_contents , <span class="at">value =</span> <span class="cn">TRUE</span> , <span class="at">ignore.case =</span> <span class="cn">TRUE</span> )</span>
<span id="cb878-13"><a href="national-survey-on-drug-use-and-health-nsduh.html#cb878-13" tabindex="-1"></a></span>
<span id="cb878-14"><a href="national-survey-on-drug-use-and-health-nsduh.html#cb878-14" tabindex="-1"></a>nsduh_df <span class="ot">&lt;-</span> <span class="fu">get</span>( nsduh_df_name )</span>
<span id="cb878-15"><a href="national-survey-on-drug-use-and-health-nsduh.html#cb878-15" tabindex="-1"></a></span>
Expand All @@ -1270,7 +1270,7 @@ <h3>Survey Design Definition<a href="national-survey-on-drug-use-and-health-nsdu
<span id="cb881-5"><a href="national-survey-on-drug-use-and-health-nsduh.html#cb881-5" tabindex="-1"></a> <span class="at">id =</span> <span class="sc">~</span> verep , </span>
<span id="cb881-6"><a href="national-survey-on-drug-use-and-health-nsduh.html#cb881-6" tabindex="-1"></a> <span class="at">strata =</span> <span class="sc">~</span> vestr_c , </span>
<span id="cb881-7"><a href="national-survey-on-drug-use-and-health-nsduh.html#cb881-7" tabindex="-1"></a> <span class="at">data =</span> nsduh_df , </span>
<span id="cb881-8"><a href="national-survey-on-drug-use-and-health-nsduh.html#cb881-8" tabindex="-1"></a> <span class="at">weights =</span> <span class="sc">~</span> analwt_c , </span>
<span id="cb881-8"><a href="national-survey-on-drug-use-and-health-nsduh.html#cb881-8" tabindex="-1"></a> <span class="at">weights =</span> <span class="sc">~</span> analwt2_c , </span>
<span id="cb881-9"><a href="national-survey-on-drug-use-and-health-nsduh.html#cb881-9" tabindex="-1"></a> <span class="at">nest =</span> <span class="cn">TRUE</span> </span>
<span id="cb881-10"><a href="national-survey-on-drug-use-and-health-nsduh.html#cb881-10" tabindex="-1"></a> )</span></code></pre></div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/search_index.json

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions metadata/nsduh.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@ Four Example Strengths & Limitations:

✔️ [Restricted data can be pooled for state estimates](https://www.samhsa.gov/data/nsduh/state-reports-NSDUH-2022)

❌ [Traditional surveillance systems have considerable lags associated with the cycle of data collection, organization, and release](https://doi.org/10.1073/pnas.2207391120)
❌ [Traditional surveillance systems have lags associated with data collection, organization, and release](https://doi.org/10.1073/pnas.2207391120)

❌ [Data from 2021 should not be compared to estimates from 2019 or earlier](https://www.samhsa.gov/data/taxonomy/term/1244#term-1272)

<br>

Three Example Findings:

1. [Across 2002-2014, 36% of adolescents and young adults with ADHD used cannibis in the past month](http://doi.org/10.1056/NEJMoa1813751).
1. [Across 2002-2014, 36% of Americans aged 13-25 with ADHD used cannibis in the past month](http://doi.org/10.1056/NEJMoa1813751).

2. [In 2021, 23% of older adults with past−year non−medical opioid use received public assistance and only 42% reported very good or excellent health vs. 16% and 68% among older adults without such use](http://doi.org/10.3386/w31884).
2. [In 2021, 23% of older adults with past−year non−medical opioid use received public assistance and only 42% reported very good or excellent health vs. 16% and 68% among those without such use](http://doi.org/10.3386/w31884).

3. [In 2023, 7.4% of adolescents aged 12 to 17 (or 1.9 million people) used tobacco products or vaped nicotine in the past month](https://www.samhsa.gov/data/release/2023-national-survey-drug-use-and-health-nsduh-releases#highlights).
3. [Among adolescents 12-17 in 2023, 7% used tobacco products or vaped nicotine in the past month](https://www.samhsa.gov/data/release/2023-national-survey-drug-use-and-health-nsduh-releases#highlights).

<br>

Expand Down Expand Up @@ -79,7 +79,7 @@ chapter_tag_rdata <- unzip( zip_tf , exdir = tempdir() )

chapter_tag_rdata_contents <- load( chapter_tag_rdata )

chapter_tag_df_name <- grep( 'PUF' , chapter_tag_rdata_contents , value = TRUE )
chapter_tag_df_name <- grep( 'PUF' , chapter_tag_rdata_contents , value = TRUE , ignore.case = TRUE )

chapter_tag_df <- get( chapter_tag_df_name )

Expand All @@ -100,7 +100,7 @@ chapter_tag_design <-
id = ~ verep ,
strata = ~ vestr_c ,
data = chapter_tag_df ,
weights = ~ analwt_c ,
weights = ~ analwt2_c ,
nest = TRUE
)
```
Expand Down
12 changes: 6 additions & 6 deletions nsduh.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ Four Example Strengths & Limitations:

✔️ [Restricted data can be pooled for state estimates](https://www.samhsa.gov/data/nsduh/state-reports-NSDUH-2022)

[Traditional surveillance systems have considerable lags associated with the cycle of data collection, organization, and release](https://doi.org/10.1073/pnas.2207391120)
[Traditional surveillance systems have lags associated with data collection, organization, and release](https://doi.org/10.1073/pnas.2207391120)

[Data from 2021 should not be compared to estimates from 2019 or earlier](https://www.samhsa.gov/data/taxonomy/term/1244#term-1272)

<br>

Three Example Findings:

1. [Across 2002-2014, 36% of adolescents and young adults with ADHD used cannibis in the past month](http://doi.org/10.1056/NEJMoa1813751).
1. [Across 2002-2014, 36% of Americans aged 13-25 with ADHD used cannibis in the past month](http://doi.org/10.1056/NEJMoa1813751).

2. [In 2021, 23% of older adults with past−year non−medical opioid use received public assistance and only 42% reported very good or excellent health vs. 16% and 68% among older adults without such use](http://doi.org/10.3386/w31884).
2. [In 2021, 23% of older adults with past−year non−medical opioid use received public assistance and only 42% reported very good or excellent health vs. 16% and 68% among those without such use](http://doi.org/10.3386/w31884).

3. [In 2023, 7.4% of adolescents aged 12 to 17 (or 1.9 million people) used tobacco products or vaped nicotine in the past month](https://www.samhsa.gov/data/release/2023-national-survey-drug-use-and-health-nsduh-releases#highlights).
3. [Among Americans aged 12 to 17 in 2023, 7% used tobacco products or vaped nicotine in the past month](https://www.samhsa.gov/data/release/2023-national-survey-drug-use-and-health-nsduh-releases#highlights).

<br>

Expand Down Expand Up @@ -71,7 +71,7 @@ nsduh_rdata <- unzip( zip_tf , exdir = tempdir() )
nsduh_rdata_contents <- load( nsduh_rdata )
nsduh_df_name <- grep( 'PUF' , nsduh_rdata_contents , value = TRUE )
nsduh_df_name <- grep( 'PUF' , nsduh_rdata_contents , value = TRUE , ignore.case = TRUE )
nsduh_df <- get( nsduh_df_name )
Expand Down Expand Up @@ -106,7 +106,7 @@ nsduh_design <-
id = ~ verep ,
strata = ~ vestr_c ,
data = nsduh_df ,
weights = ~ analwt_c ,
weights = ~ analwt2_c ,
nest = TRUE
)
```
Expand Down

0 comments on commit 3888147

Please sign in to comment.