View source: R/calc_replicate_weights.R
calc_replicate_weights | R Documentation |
Takes the output of cluster_gen
to calculate the replicate weights as well as some summary statistics
calc_replicate_weights(data, method, k = 0)
data |
list of background questionnaire data (typically generated by |
method |
replication method. Can be "Jackknife", "BRR" or "BRR Fay" |
k |
deflating weight factor (used only when 'method = "BRR Fay") |
Replicate weights can be calculated using the Jackknife for unstratified two-stage sample designs or Balanced Repeated Replication (BRR) with or without Fay's modification.
According to OECD (2015), PISA uses the Fay method with a factor of 0.5. This is why k = .5
by default.
list with data and, if requested, some statistics
This function is essentially a big wrapper for replicate_var
, applying that function on each element of an output of cluster_gen
.
OECD (2015). Pisa Data Analysis Manual. Rust, K. F., & Rao, J. N. K. (1996). Variance estimation for complex surveys using replication techniques. Statistical methods in medical research, 5(3), 283-310.
cluster_gen()
jackknife()
data <- cluster_gen(c(3, 50))
calc_replicate_weights(data, "Jackknife")
calc_replicate_weights(data, "BRR")
calc_replicate_weights(data, "BRR Fay")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.