Learn R Programming

vardpoor (version 0.3.6)

incPercentile: Estimation of weighted percentiles

Description

The function computes the estimates of weighted percentiles.

Usage

incPercentile(Y, weights = NULL, sort = NULL,
              Dom = NULL,  period=NULL,
              k = c(20, 80), dataset = NULL)

Arguments

Y
Study variable (for example equalized disposable 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 (length of the vector h
weights
Optional weight variable. One dimensional object convert 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 coun
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, the estimates of percentiles are computed for each domain. An object convert able to data.frame or variable names as character vector, column numbers or logical vector (length
period
Optional variable for survey period. If supplied, linearization of at-risk-of-poverty threshold is done for each survey period. Object convertible to data.frame or variable names as character, column numbers as numeric vector or logical vecto
k
A vector of integers between 0 and 100 specifying the percentiles to be computed (0 gives the minimum, 100 gives the maximum).
dataset
Optional survey data object convertible to data.frame.

Value

  • A data.table containing the estimates of weighted income percentiles specified by k.

References

Working group on Statistics on Income and Living Conditions (2004) Common cross-sectional EU indicators based on EU-SILC; the gender pay gap. EU-SILC 131-rev/04, Eurostat.

See Also

linarpt, linarpr, linqsr

Examples

Run this code
data(eusilc)
incPercentile(Y="eqIncome", weights = "rb050", Dom="db040", data=eusilc)

Run the code above in your browser using DataLab