internal function to calculate ratios estimations
create_ratio_internal(
var,
denominator,
domains = NULL,
subpop = NULL,
disenio,
ci = FALSE,
deff = FALSE,
ess = FALSE,
ajuste_ene = FALSE,
unweighted = FALSE,
rel_error = FALSE,
log_cv = FALSE,
rm.na = FALSE
)
dataframe
that contains the inputs and all domains to be evaluated
numeric variable within the dataframe
, is the numerator of the ratio to be calculated.
numeric variable within the dataframe
, is the denominator of the ratio to be calculated.
domains to be estimated separated by the + character.
integer dummy variable to filter the dataframe
complex design created by survey
package
boolean
indicating if the confidence intervals must be calculated
boolean
Design effect
boolean
Effective sample size
boolean
indicating if an adjustment for the sampling-frame transition period must be used
boolean
Add non weighted count if it is required
boolean
Relative error
boolean
indicating if the log cv must be returned. Used for ratios between 0 and 1.
boolean
indicating if NA values must be removed