Skip to content

Commit

Permalink
edit sentence
Browse files Browse the repository at this point in the history
  • Loading branch information
ivelasq committed Aug 22, 2024
1 parent 3bdb239 commit f9f4ccb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 05-descriptive-analysis.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ recs_des %>%
mutate(p = p * 100)
```

with `r .preg %>% filter(Region=="Northeast") %>% pull(p) %>% signif(3)`% of the households in the Northeast, `r .preg %>% filter(Region=="Midwest") %>% pull(p) %>% signif(3)`% in the Midwest, and so on. Note that the proportions in column `p` add up to one.
`r .preg %>% filter(Region=="Northeast") %>% pull(p) %>% signif(3)`% of the households are in the Northeast, `r .preg %>% filter(Region=="Midwest") %>% pull(p) %>% signif(3)`% in the Midwest, and so on. Note that the proportions in column `p` add up to one.

\index{Categorical data|(}
The `survey_prop()` function is essentially the same as using `survey_mean()` with a categorical variable and without specifying a numeric variable in the `x` argument. The following code gives us the same results as above:
Expand Down

0 comments on commit f9f4ccb

Please sign in to comment.