internal function to calculate proportion estimations
create_prop_internal.Rdinternal function to calculate proportion estimations
Usage
create_prop_internal(
var,
domains = NULL,
subpop = NULL,
disenio,
ci = FALSE,
deff = FALSE,
ess = FALSE,
ajuste_ene = FALSE,
rel_error = FALSE,
log_cv = FALSE,
unweighted = FALSE,
standard_eval = TRUE,
rm.na = FALSE,
env = parent.frame(),
ci_logit = FALSE
)Arguments
- var
integer dummy variable within the
dataframe- domains
domains to be estimated separated by the + character.
- subpop
integer dummy variable to filter the dataframe
- disenio
complex design created by
surveypackage- ci
booleanindicating if the confidence intervals must be calculated- deff
booleanDesign effect- ess
booleanEffective sample size- ajuste_ene
booleanindicating if an adjustment for the sampling-frame transition period must be used- rel_error
booleanRelative error- log_cv
booleanindicating if the log cv must be returned- unweighted
booleanAdd non weighted count if it is required- standard_eval
booleanindicating if the function is inside another function, by default it is TRUE, avoid problems with lazy eval.- rm.na
booleanindicating if NA values must be removed- env
parent environment to get some variables
- ci_logit
booleanindicating if interval confidence is logit