Skip to content

Commit

Permalink
Add target population variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ivelasq committed Aug 28, 2023
1 parent fb0697b commit 30611ff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 05-descriptive-analysis.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ We will be using data from ANES and RECS. Here is the code to create the design
#| label: desc-anes-des
#| eval: FALSE
anes_in <- read_osf("anes_2020.rds")
target_pop <- 231592693
targetpop <- 231592693
anes_adjwgt <- anes_in %>%
mutate(Weight = Weight / sum(Weight) * targetpop)
Expand Down
2 changes: 1 addition & 1 deletion 06-statistical-testing.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ We will be using data from ANES and RECS. Here is the code to create the design
#| label: stattest-anes-des
#| eval: FALSE
anes_in <- read_osf("anes_2020.rds")
target_pop <- 231592693
targetpop <- 231592693
anes_adjwgt <- anes_in %>%
mutate(Weight = Weight / sum(Weight) * targetpop)
Expand Down
1 change: 1 addition & 0 deletions 07-modeling.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ We will be using data from ANES and RECS. Here is the code to create the design
#| label: model-anes-des
#| eval: FALSE
anes_in <- read_osf("anes_2020.rds")
targetpop <- 231592693
anes_adjwgt <- anes_in %>%
mutate(Weight = Weight / sum(Weight) * targetpop)
Expand Down

0 comments on commit 30611ff

Please sign in to comment.