variance_othstr(Y, H, H2, w_final, N_h=NULL, N_h2, s2g=FALSE, period=NULL, dataset=NULL)data.frame 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.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 codata.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 giving the first column - stratum, but the second column - the total of the population in each stratum.data.frame giving the first column - new stratum, but the second column - the total of the population in each new stratum.data.frame or variable name as character, column number or logical vector with onlydata.frame.data.table containing the values of the variance estimation.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)
vo <- variance_othstr(Y=Y, H=H, H2=H2,
w_final=w_final,
N_h=N_h, N_h2=N_h2,
period=NULL,
dataset=NULL)
voRun the code above in your browser using DataLab