Skip to content

Commit

Permalink
When assigning random PSU IDs *within* variance stratum, don't need t…
Browse files Browse the repository at this point in the history
…o use var_strat variable.
  • Loading branch information
bschneidr committed Oct 11, 2023
1 parent 158b2e3 commit 02574ce
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion R/as_jackknife_design.R
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,6 @@ as_random_group_jackknife_design.survey.design <- function(
n_psus <- design_vars$PSU |> unique() |> length()
psu_random_labels <- sample(x = n_psus, size = n_psus, replace = FALSE)
design_vars[['RAND_PSU_ID']] <- interaction(
design_vars[['VAR_STRAT']],
design_vars[['STRATUM']],
psu_random_labels[design_vars[['PSU']]],
drop = TRUE, lex.order = TRUE
Expand Down

0 comments on commit 02574ce

Please sign in to comment.