Skip to content

Commit

Permalink
rss
Browse files Browse the repository at this point in the history
  • Loading branch information
ajdamico committed Feb 26, 2024
1 parent bce3a1f commit ebc7cee
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docs/rapid-surveys-system-rss.html
Original file line number Diff line number Diff line change
Expand Up @@ -1256,8 +1256,8 @@ <h2>Replication Example<a href="rapid-surveys-system-rss.html#replication-exampl
<p>This example matches the statistic and confidence intervals from the “Ever uses a portable air cleaner or purifier in home” page of the <a href="https://www.cdc.gov/nchs/rss/round1/air-purifiers.html">Air cleaners and purifiers dashboard</a>:</p>
<div class="sourceCode" id="cb1103"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb1103-1"><a href="rapid-surveys-system-rss.html#cb1103-1" tabindex="-1"></a>result <span class="ot">&lt;-</span></span>
<span id="cb1103-2"><a href="rapid-surveys-system-rss.html#cb1103-2" tabindex="-1"></a> <span class="fu">svymean</span>(</span>
<span id="cb1103-3"><a href="rapid-surveys-system-rss.html#cb1103-3" tabindex="-1"></a> <span class="sc">~</span> how_often_use_cleaner_purifier ,</span>
<span id="cb1103-4"><a href="rapid-surveys-system-rss.html#cb1103-4" tabindex="-1"></a> rss_design</span>
<span id="cb1103-3"><a href="rapid-surveys-system-rss.html#cb1103-3" tabindex="-1"></a> <span class="sc">~</span> <span class="fu">as.numeric</span>( ven_use <span class="sc">&gt;</span> <span class="dv">0</span> ) ,</span>
<span id="cb1103-4"><a href="rapid-surveys-system-rss.html#cb1103-4" tabindex="-1"></a> <span class="fu">subset</span>( rss_design , ven_use <span class="sc">&gt;=</span> <span class="dv">0</span> )</span>
<span id="cb1103-5"><a href="rapid-surveys-system-rss.html#cb1103-5" tabindex="-1"></a> )</span>
<span id="cb1103-6"><a href="rapid-surveys-system-rss.html#cb1103-6" tabindex="-1"></a></span>
<span id="cb1103-7"><a href="rapid-surveys-system-rss.html#cb1103-7" tabindex="-1"></a><span class="fu">stopifnot</span>( <span class="fu">round</span>( <span class="fu">coef</span>( result ) , <span class="dv">3</span> ) <span class="sc">==</span> .<span class="dv">379</span> )</span>
Expand Down
2 changes: 1 addition & 1 deletion docs/search_index.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions metadata/rss.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ This example matches the statistic and confidence intervals from the "Ever uses
```{r eval = FALSE , results = "hide" }
result <-
svymean(
~ how_often_use_cleaner_purifier ,
chapter_tag_design
~ as.numeric( ven_use > 0 ) ,
subset( chapter_tag_design , ven_use >= 0 )
)

stopifnot( round( coef( result ) , 3 ) == .379 )
Expand Down
4 changes: 2 additions & 2 deletions rss.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ This example matches the statistic and confidence intervals from the "Ever uses
```{r eval = FALSE , results = "hide" }
result <-
svymean(
~ how_often_use_cleaner_purifier ,
rss_design
~ as.numeric( ven_use > 0 ) ,
subset( rss_design , ven_use >= 0 )
)
stopifnot( round( coef( result ) , 3 ) == .379 )
Expand Down

0 comments on commit ebc7cee

Please sign in to comment.