variance_est(Y, H, PSU, w_final, N_h=NULL, fh_zero=FALSE,
PSU_level=TRUE, period=NULL, dataset=NULL)data.table or variable names as character, column numbers or logical vector with only one TRUE value (length of the vector has to be the same as the column count of datasetdata.table or variable name as character, column number or logical vector with only one TRUE value (length of the vector has to be the same as the columndata.table or variable name as character, column number or logical vector with only one TRUE value (length of the vector has to be the same as the cdata.table or variable name as character, column number or logical vector with only one TRUE value (length of the vector has to be the same as the column count of data.table or variable names as character, column numbers or logical vector (length of the vector has to be thdata.table.data.table containing the values of the
variance estimation by totals.domain, lin.ratio, linarpr,
linarpt, lingini, lingini2,
lingpg, linpoormed, linqsr,
linrmpg, residual_est, vardom,
vardomh, varpoord, variance_othstrYs <- rchisq(10, 3)
w <- rep(2, 10)
PSU <- 1:length(Ys)
H <- rep("Strata_1", 10)
# by default without using fh_zero (finite population correction)
variance_est(Y=Ys, H=H, PSU=PSU, w_final=w)
# without using fh_zero (finite population correction)
variance_est(Y=Ys, H=H, PSU=PSU, w_final=w, fh_zero=FALSE)
# with using fh_zero (finite population correction)
variance_est(Y=Ys, H=H, PSU=PSU, w_final=w, fh_zero=TRUE)Run the code above in your browser using DataLab