replicate_var: Sampling variance of the mean for replications

View source: R/replicate_var.R

replicate_varR Documentation

Sampling variance of the mean for replications

Description

Estimates the mean variance for Jackknife, BRR and BRR Fay replication methods

Usage

replicate_var(
  data_whole,
  data_rep,
  method,
  k = 0,
  weight_var = NULL,
  stat = weighted.mean,
  vars = NULL,
  full_output = FALSE
)

Arguments

data_whole

full, original dataset (the one that generated the replications)

data_rep

list with replications of 'data_whole'

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 'TRUE', returns all intermediate objects created

Details

'data_rep' can be obtained from

See Also

jackknife brr


lsasim documentation built on Aug. 22, 2023, 5:09 p.m.