jkr_iccs | R Documentation |
jkr_iccs() computes jackknifes for ICCS 2009 and ICCS 2016
jkr_iccs(data, nrep, jkz, jki, wgt)
data |
data frame object which contains the rest of the arguments |
nrep |
number of replicates |
jkz |
vector containing the pseudo strata (75 in ICCS studies) |
jki |
vector selecting which school goes into the replicate |
wgt |
total survey weights |
a loop function to create jackknifes replicate weights (author: 'merivera@uc.cl')
the original data frame with the jacknnifes replicates added.
library(dplyr)
data_frame_with_jackknifes <- data_frame %>%
r4sda::jackknifes_iccs(
data = .,
nrep = 75,
jkz = 'JKZONEZ',
jki = 'JKREPS',
wgt = 'TOTWGTS')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.