View source: R/replicate_var.R
replicate_var | R Documentation |
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
)
data_whole |
full, original dataset (the one that generated the replications) |
data_rep |
list with replications of |
method |
replication method. Can be "Jackknife", "BRR" or "BRR Fay" |
k |
deflating weight factor (used only when 'method = "BRR Fay") |
weight_var |
variables containing the weights |
stat |
statistic of interest to calculate (must be a base R function) |
vars |
vector containing the variables of interest |
full_output |
if |
data_rep
can be obtained from
jackknife()
brr()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.