varpoord(Y, w_final, age=NULL, pl085=NULL, month_at_work=NULL,
Y_den=NULL, Y_thres = NULL, wght_thres = NULL,
ID_household, id = NULL, H, PSU, N_h, fh_zero = FALSE,
PSU_level=TRUE, sort = NULL, Dom = NULL, period = NULL,
gender = NULL, dataset = NULL, X = NULL, periodX = NULL,
X_ID_household = NULL, ind_gr = NULL, g = NULL, datasetX = NULL,
q, percentage = 60, order_quant = 50, alpha = 20,
confidence = 0.95, outp_lin = FALSE, outp_res = FALSE,
several.ok = FALSE, type = "linrmpg")
data.frame
or variable name as character, column number or logical vector with only one TRUE
valuedata.frame
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.frame
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.frame
or variable name as character, column number or logical vector with only one TRUE
value (data.frame
or variable name as character, column number or logical vector with only one TRUE
value (length of the vectdata.frame
or variable name as character, column number or logical vector with ondata.frame
or variable name as character, column number or logical vector with only one TRUE
value (lendata.frame
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 data.frame
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 data.frame
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.frame
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.frame
or variable name as character, column number or logical vector with only one TRUE
value (length of the vector hadata.frame
or variable names as character vector, column numbers or logical vector (length of the vector has data.frame
or variable names as character, column numbers or logical vector (length of the vector has to be the same as the data.frame
or variable name as character, column number or logical vector with only one TRUE
value (lengtdata.frame
.data.frame
or variable names as character, column numbers or logical vector (length of the vector has to be the same as the column count of
data.frame
or variable names as character, column numbers or logical vector (length of data.frame
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 data.frame
or variable name as character, column number or logical vector with only one TRUE
value (length of data.frame
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 tdata.frame
.data.frame
or variable name as character, column number or logical vector with only one TRUE
value (length of theTRUE
linearized values of the ratio estimator will be printed out.TRUE
estimated residuals of calibration will be printed out.type
should be allowed to have more than one.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:
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,
value
- 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.vardom
, vardomh
, linarpt
data(eusilc)
dataset <- data.frame(1:nrow(eusilc),eusilc)
colnames(dataset)[1] <- "IDd"
dataset1 <- dataset[1:1000,]
aa<-varpoord(Y = "eqIncome", w_final = "rb050",
Y_thres = NULL, wght_thres = NULL,
ID_household = "db030", id = "IDd",
H = "db040", PSU = "rb030", N_h = NULL,
sort = NULL, Dom = "db040",
gender = NULL, X = NULL,
X_ID_household = NULL, g = NULL,
datasetX = NULL,
q = rep(1, if (is.null(datasetX))
nrow(as.data.frame(H)) else nrow(datasetX)),
dataset = dataset1, percentage=60, order_quant=50,
alpha = 20, confidence = .95, outp_lin = FALSE,
outp_res = FALSE, several.ok=FALSE, type="linarpt")
aa
aa<-varpoord(Y = "eqIncome", w_final = "rb050",
Y_thres = NULL, wght_thres = NULL,
ID_household = "db030", id = "IDd",
H = "db040", PSU = "rb030", N_h = NULL,
sort = NULL, Dom = "db040",
gender = NULL, X = NULL,
X_ID_household = NULL, g = NULL,
datasetX = NULL,
q = rep(1, if (is.null(datasetX))
nrow(as.data.frame(H)) else nrow(datasetX)),
dataset = dataset, percentage=60, order_quant=50,
alpha = 20, confidence = .95, outp_lin = TRUE,
outp_res = TRUE, several.ok=FALSE, type="all_choices")
aa$lin_out[20:40]
aa$res_out[20:40]
Run the code above in your browser using DataLab