Learn R Programming

lsasim (version 2.1.6)

calc_replicate_weights: 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)

Value

list with data and, if requested, some statistics

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.

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()

Examples

Run this code
data <- cluster_gen(c(3, 50))
calc_replicate_weights(data, "Jackknife")
calc_replicate_weights(data, "BRR")
calc_replicate_weights(data, "BRR Fay")

Run the code above in your browser using DataLab