vardom_othstr(Y, H, H2, PSU, w_final, id=NULL,
Dom = NULL, N_h = NULL, N_h2, s2g=FALSE, Z = NULL,
X = NULL, g = NULL, dataset = NULL,
q = rep(1, if (is.null(dataset)) nrow(data.frame(X)) else nrow(dataset)),
confidence = .95, outp_lin=FALSE, outp_res=FALSE)dataset
is not NULL) a character string, an integer or a
logical vector (length is the same as 'dataset' column dataset is not NULL) a character string,
an integer or a logical vector (length is the same as 'datasetdataset is not NULL) a character string,
an integer or a logical vector (length is the same as 'datdataset is not NULL)
a character string, an integer or a logical vector (length is the
same as 'dataset' column count) specifying the codataset is not
NULL) a character string, an integer or a logical vector
(length is the same as 'dataset' column count) spdataset is not NULL) a character string,
an integer or a logical vector (length is the same as
'dataset' column count) dataset is
not NULL) character strings, integers or a logical vectors
(length is the same as 'dataset' column count) spdataset
is not NULL) character strings, integers or a logical vectors
(length is the same as 'dataset' column codataset is not NULL)
character strings, integers or a logical vectors (length is the
same as 'dataset' column count) specifying the cordataset is not
NULL) a character string, an integer or a logical vector
(length is the same as 'dataset' column coudataset is not NULL) a
character string, an integer or a logical vector (ledata.frame.TRUE linearized values of
the ratio estimator will be printed outTRUE estimated residuals
of calibration will be printed outdata.table containing the estimation(s)
by domain, or (if Dom is NULL) totals.data.table containing the values of the
variance estimation by domains or (if Dom is NULL)
totals.data.table containing the values of the
standart error by domains or (if Dom is NULL)
totals.data.table containing the values of the
relative standart error (coefficient of variation) by domains
or (if Dom is NULL) totals in percentage.data.table containing the values of the
relative standart error (coefficient of variation) by domains
or (if Dom is NULL) totals.data.table containing
the values of the absolute margin of error by domains or
(if Dom is NULL) totals.data.table containing
the values of the relative margin of error by domains or
(if Dom is NULL) totals.data.table containing the values of
the confidence interval lower bound by domains or (if Dom
is NULL) totals.data.table containing the values of
the confidence interval upper bound by domains or (if Dom
is NULL) totals.matrix containing the values of
the variance estimation of HT estimator under SRS by domains
or (if Dom is NULL) totals.matrix containing the values of the
variance estimation of HT estimator under HT estimator under
current design by domains or (if Dom is NULL) totals.matrix containing the values of
the variance estimation of calibrated estimator under SRS
by domains or (if Dom is NULL) totals.matrix containing the values of
the estimation of the design effect of sample design by
domains or (if Dom is NULL) totals.matrix containing the values of
the estimation of the design effect of estimator by domains
or (if Dom is NULL) totals.matrix containing the values of
the estimation of the overall design effect of sample
design and estimator by domains or (if Dom is
NULL) totals.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.frame containing all previosly definited
values together by domains or (if Dom is NULL) totals.domain, lin.ratio, residual_est,
vardomh, var_srs, variance_est,
variance_othstrdata(eusilc)
dataset <- data.frame(1:nrow(eusilc),eusilc)
colnames(dataset)[1] <- "IDd"
Nh <- data.table(db040=eusilc$db040, rb050=eusilc$rb050)
setkeyv(Nh, names(Nh)[1])
N_h2 <- Nh[, sum(rb050, na.rm = FALSE), keyby="db040"]
aa<-vardom_othstr("eqIncome", H="db040",H2="db040", PSU="db030", w_final="rb050",
id="db030", Dom = "db040", N_h=NULL, N_h2, Z = NULL,
X = NULL, g = NULL, dataset = dataset,
q = rep(1, if (is.null(dataset))
nrow(as.data.frame(H)) else nrow(dataset)),
confidence = .95, outp_lin=TRUE, outp_res=TRUE)Run the code above in your browser using DataLab