vardom(Y, H, PSU, w_final, id=NULL,
Dom = NULL, period = NULL,
N_h = NULL, fh_zero=FALSE,
PSU_level = TRUE, Z = NULL,
X = NULL, ind_gr = NULL, g = NULL,
q= NULL, dataset = NULL,
confidence = .95, percentratio = 1,
outp_lin=FALSE, outp_res=FALSE)data.table or variable names as character, column numbers.data.table or variable name as character, column number.data.table or variable name as character, column number.data.table or variable name as character, column number.data.table or variable name as character, column number.data.table or variable names as character vector, column numbers.data.table.data.table or variable names as character, column numbers.data.table or variable names as character, column numbers.data.table or variable name as character, column number.data.table or variable name as character, column number.data.table or variable name as character, column number.data.table.percentratio value, by default - 1.TRUE linearized values of the ratio estimator will be printed out.TRUE estimated residuals of calibration will be printed out.data.table containing the linearized values of the ratio estimator with id and PSU.data.table containing the estimated residuals of calibration with id and PSU.data.table, which containing variables:
variable - names of variables of interest,
Dom - optional variable of the population domains,
period - optional variable of the survey periods,
respondent_count - the count of respondents,
pop_size - the estimated size of population,
n_nonzero - the count of respondents, who answers are larger than zero,
estim - the estimated value,
var - the estimated variance,
se - the estimated standard error,
rse - the estimated relative standard error (coefficient of variation),
cv - the estimated relative standard error (coefficient of variation) in percentage,
absolute_margin_of_error - the estimated absolute margin of error,
relative_margin_of_error - the estimated relative margin of error,
CI_lower - the estimated confidence interval lower bound,
CI_upper - the estimated confidence interval upper bound,
var_srs_HT - the estimated variance of the HT estimator under SRS,
var_cur_HT - the estimated variance of the HT estimator under current design,
var_srs_ca - the estimated variance of the calibrated estimator under SRS,
deff_sam - the estimated design effect of sample design,
deff_est - the estimated design effect of estimator,
deff - the overall estimated design effect of sample design and estimator,
n_eff - the effective sample size.domain, lin.ratio, residual_est,
vardomh, var_srs, variance_est,
variance_othstrdata(eusilc)
dataset <- data.table(IDd=1:nrow(eusilc), eusilc)
aa<-vardom(Y="eqIncome", H="db040", PSU="db030",
w_final="rb050", id="rb030", Dom = "db040",
period = NULL, N_h = NULL, Z = NULL,
X = NULL, g = NULL, q = NULL, dataset = dataset,
confidence = .95, outp_lin = TRUE, outp_res = TRUE)Run the code above in your browser using DataLab