variance_othstr(Y, H, H2, w_final, N_h=NULL, N_h2, s2g=FALSE, period=NULL, dataset=NULL)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) spdataset is not NULL) character strings,
integers or a logical vectors (length is the same as
'dataset' column coundata.frame.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,
vardom_othstr, vardomh, varpoordperiod=NULL
dataset=NULL
Y <- data.table(matrix(runif(50)*5, ncol=5))
H <- data.table(H=trunc(5*runif(10)))
H2 <- data.table(H2=trunc(3*runif(10)))
N_h <- data.table(matrix(0:4,5,1))
setnames(N_h, names(N_h), "H")
N_h[, sk:=10]
N_h2 <- data.table(matrix(0:2,3,1))
setnames(N_h2, names(N_h2), "H2")
N_h2[, sk2:=4]
w_final <- rep(2, 10)
PSU <- 1:10
variance_othstr(Y, H, H2, PSU, w_final, N_h=N_h, N_h2=N_h2, period=NULL, dataset=NULL)Run the code above in your browser using DataLab