control_inf
constructs a list with all necessary control parameters
for statistical inference.
Usage
control_inf(
vars_selection = FALSE,
var_method = c("analytic", "bootstrap"),
rep_type = c("auto", "JK1", "JKn", "BRR", "bootstrap", "subbootstrap", "mrbbootstrap",
"Fay"),
bias_inf = c("union", "div"),
num_boot = 500,
bias_correction = FALSE,
alpha = 0.05,
cores = 1,
keep_boot,
nn_exact_se = FALSE,
pi_ij
)
Arguments
- vars_selection
If
TRUE
, then the variables selection model is used.- var_method
the variance method.
- rep_type
the replication type for weights in the bootstrap method for variance estimation passed to
survey::as.svrepdesign()
. Default issubbootstrap
.- bias_inf
the inference method in the bias minimization.
if
union
, then the final model is fitted on the union of selected variables for selection and outcome modelsif
div
, then the final model is fitted separately on division of selected variables into relevant ones for selection and outcome model.
- num_boot
the number of iteration for bootstrap algorithms.
- bias_correction
if
TRUE
, then the bias minimization estimation used during model fitting.- alpha
significance level, 0.05 by defult.
- cores
the number of cores in parallel computing.
- keep_boot
a logical value indicating whether statistics from bootstrap should be kept. By default set to
TRUE
- nn_exact_se
a logical value indicating whether to compute the exact standard error estimate for
nn
orpmm
estimator. The variance estimator for estimation based onnn
orpmm
can be decomposed into three parts, with the third computed using covariance between imputed values for units in the probability sample using predictive matches from the non-probability sample. In most situations this term is negligible and is very computationally expensive so by default it is set toFALSE
, but the recommended option is to set this value toTRUE
before submitting the final results.- pi_ij
TODO, either a matrix or a
ppsmat
class object.
See also
nonprob()
– for fitting procedure with non-probability samples.