Estimates the mean variance for Jackknife, BRR and BRR Fay replication methods
replicate_var(
data_whole,
data_rep,
method,
k = 0,
weight_var = NULL,
stat = weighted.mean,
vars = NULL,
full_output = FALSE
)
full, original dataset (the one that generated the replications)
list with replications of data_whole
replication method. Can be "Jackknife", "BRR" or "BRR Fay"
deflating weight factor (used only when `method = "BRR Fay")
variables containing the weights
statistic of interest to calculate (must be a base R function)
vector containing the variables of interest
if TRUE
, returns all intermediate objects created
data_rep
can be obtained from
jackknife()
brr()