sim_tot_from_est: The sim_tot_from_est() function to simulate totals from...

View source: R/sim_tot_from_est.R

sim_tot_from_estR Documentation

The sim_tot_from_est() function to simulate totals from pre-existing estimates

Description

The sim_tot_from_est() function to simulate totals from pre-existing estimates

Usage

sim_tot_from_est(df_or_list_est_tot, type_strata, lgl_rej_neg_sim = TRUE)

Arguments

df_or_list_est_tot

a single data.frame of estimated joint totals or list of data.frames of estimated marginal totals (and respective standard errors)

type_strata

specify if joint (requires a data.frame) or marginal requires a list

lgl_rej_neg_sim

a logical whether to reject negative simulations

Value

1 simulation of either joint totals in a data.frame or marginal totals in a list of data.frames


statsccpr/MultCal2Sim documentation built on Sept. 3, 2022, 12:39 p.m.