calc_replicate_weights {lsasim} | R Documentation |
Calculate replicate weights and summary statistics
Description
Takes the output of 'cluster_gen' to calculate the replicate weights as well as some summary statistics
Usage
calc_replicate_weights(data, method, k = 0)
Arguments
data |
list of background questionnaire data (typically generated by 'cluster_gen') |
method |
replication method. Can be "Jackknife", "BRR" or "BRR Fay" |
k |
deflating weight factor (used only when 'method = "BRR Fay") |
Details
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.
Value
list with data and, if requested, some statistics
Note
This function is essentially a big wrapper for 'replicate_var', applying that function on each element of an output of 'cluster_gen'.
References
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.
See Also
cluster_gen jackknife, jackknife_var
Examples
data <- cluster_gen(c(3, 50))
calc_replicate_weights(data, "Jackknife")
calc_replicate_weights(data, "BRR")
calc_replicate_weights(data, "BRR Fay")