Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Dec 31, 2024
1 parent 71795b5 commit 725b631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/rescale_weights.R
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ rescale_weights <- function(data,
}

# split into groups, and calculate weights
out <- lapply(split(data_tmp, data_tmp$by), function(group_data) {
out <- lapply(split(data_tmp, data_tmp[by]), function(group_data) {
p_weights <- group_data[[probability_weights]]
# design effect according to Kish
deff <- mean(p_weights^2) / (mean(p_weights)^2)
Expand Down

0 comments on commit 725b631

Please sign in to comment.