Build a per-replicate refit function for an estimated visibility rule
make_vis_refit.RdFor a rule with is_estimated = TRUE, the estimated group size moves with
the bootstrap replicate. This returns the refit closure
get_boot_ests_matrix() expects: given a replicate index, it refits the
rule using that replicate's weights and returns the group size S.hat for
each row of ec.dat.
Arguments
- rule
the visibility_rule
- donor.dat
the donor frame
- boot.weights
data frame of bootstrap weights, with an ego id column and columns
boot_weight_1...boot_weight_M- ec.dat
the ego X cell data the estimate is computed from
- ego.id
name of the ego id column