Usage
vardchangespoor(Y,
age=NULL,
pl085 = NULL,
month_at_work = NULL,
Y_den = NULL,
Y_thres = NULL,
wght_thres = NULL,
H, PSU, w_final, id,
Dom = NULL,
country, periods,
sort=NULL,
gender = NULL,
percentage=60,
order_quant=50,
alpha = 20,
dataset = NULL,
period1, period2,
linratio = FALSE,
use.estVar = FALSE,
confidence=0.95,
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
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
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
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
id
variable for unit ID codes (for household surveys - secondary unit id number). One dimensional object convertible to one-column data.frame
or variable name as character, column number or logical vector with only one TRUE
value (l
Dom
Optional variables used to define population domains. If supplied, variables are 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
country
Variable for the survey countries. The values for each country are computed independently. 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 colum
periods
Variable for the all survey periods. The values for each period are computed independently. 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 colu
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
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
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).
dataset
Optional survey data object convertible to data.frame
.
period1
The vector of the one row from variable periods
describes the first period.
period2
The vector of the one row from variable periods
describes the second period.
linratio
Logical value. If value is TRUE
, then the linearized variables for the ratio estimator is used for variance estimation. If value is FALSE
, then the gradients is used for variance estimation.
use.estVar
Logical value. If value is TRUE
, then R
function estVar
is used for the estimation of covariance matrix of the residuals. If value is FALSE
, then R
function estVar
is not used
confidence
optional; either a positive value for confidence interval. This variable by default is 0.95 .
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".