Usage
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")
Arguments
Y
Study variable (for example equalized disposable income or gross pension income). One dimensional object convertible to one-column data.frame
or variable name as character, column number or logical vector with only one TRUE
value
w_final
Weight variable. One dimensional object convertible to one-column 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
age
Age variable. One dimensional object convertible to one-column 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
pl085
Retirement variable (Number of months spent in retirement or early retirement). One dimensional object convertible to one-column data.frame
or variable name as character, column number or logical vector with only one TRUE
value (
month_at_work
Variable for total number of month at work (sum of the number of months spent at full-time work as employee, number of months spent at part-time work as employee, number of months spent at full-time work as self-employed (including family worker), number
Y_den
Denominator variable (for example gross individual earnings). One dimensional object convertible to one-column data.frame
or variable name as character, column number or logical vector with only one TRUE
value (length of the vect
Y_thres
Variable (for example equalized disposable income) used for computation and linearization of poverty threshold. One dimensional object convertible to one-column data.frame
or variable name as character, column number or logical vector with on
wght_thres
Weight variable used for computation and linearization of poverty threshold. One dimensional object convertible to one-column data.frame
or variable name as character, column number or logical vector with only one TRUE
value (len
ID_household
Variable for household ID codes. One dimensional object convertible to one-column 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
id
Optional variable for unit ID codes. One dimensional object convertible to one-column 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
H
The unit stratum variable. One dimensional object convertible to one-column 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
PSU
Primary sampling unit variable. One dimensional object convertible to one-column 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 c
N_h
optional; either a matrix giving the first column - stratum, but the second column - the total of the population in each stratum.
fh_zero
by default FALSE; fh is calculated as division of n_h and N_h in each strata, if true, fh value is zero in each strata.
PSU_level
by default TRUE; if PSU_level is true, in each strata fh is calculated as division of count of PSU in sample (n_h) and count of PSU in frame(N_h). if PSU_level is false, in each strata fh is calculated as division of count of units in sample (n_h) and cou
sort
Optional variable to be used as tie-breaker for sorting. One dimensional object convertible to one-column data.frame
or variable name as character, column number or logical vector with only one TRUE
value (length of the vector ha
Dom
Optional variables used to define population domains. If supplied, variables is calculated for each domain. An object convertible to data.frame
or variable names as character vector, column numbers or logical vector (length of the vector has
period
Optional variable for survey period. If supplied, variables is calculated for each time period. Object convertable to data.frame
or variable names as character, column numbers or logical vector (length of the vector has to be the same as the
gender
Numerical variable for gender, where 1 is for males, but 2 is for females. One dimensional object convertible to one-column data.frame
or variable name as character, column number or logical vector with only one TRUE
value (lengt
dataset
Optional survey data object convertible to data.frame
.
X
Optional matrix of the auxiliary variables for the calibration estimator. Object convertible to 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
periodX
Optional variable of the survey periods. If supplied, residual estimation of calibration is done independently for each time period. Object convertible to data.frame
or variable names as character, column numbers or logical vector (length of
X_ID_household
Variable for household ID codes. One dimensional object convertible to one-column 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
ind_gr
Optional variable by which divided independently auxiliary variables. One dimensional object convertible to one-column data.frame
or variable name as character, column number or logical vector with only one TRUE
value (length of
g
Optional variable of the g weights. One dimensional object convertible to one-column 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 t
datasetX
Optional survey data object in household level convertible to data.frame
.
q
Variable of the positive values accounting for heteroscedasticity. One dimensional object convertible to one-column data.frame
or variable name as character, column number or logical vector with only one TRUE
value (length of the
percentage
A numeric value in range $[0,100]$ for $p$ in the formula for poverty threshold computation:
$$\frac{p}{100} \cdot Z_{\frac{\alpha}{100}}.$$
For example, to compute poverty threshold equal to 60% of some income quantile, $p$ should be set equal to 60.
order_quant
A numeric value in range $[0,100]$ for $\alpha$ in the formula for poverty threshold computation:
$$\frac{p}{100} \cdot Z_{\frac{\alpha}{100}}.$$
For example, to compute poverty threshold equal to some percentage of median income, $\alpha$ should be set
alpha
a numeric value in range $[0,100]$ for the order of the income quantile share ratio (in percentage).
confidence
Optional positive value for confidence interval. This variable by default is 0.95.
outp_lin
Logical value. If TRUE
linearized values of the ratio estimator will be printed out.
outp_res
Logical value. If TRUE
estimated residuals of calibration will be printed out.
several.ok
Logical value. If type
should be allowed to have more than one.
type
a character vector (of length one unless several.ok is TRUE), example "linarpr","linarpt", "lingpg", "linpoormed", "linrmpg",
"lingini", "lingini2", "linqsr", "linarr", "linrmi", "all_choices".