incMean | R Documentation |
Compute the weighted mean income.
incMean(inc, weights = NULL, years = NULL, data = NULL, na.rm = FALSE)
inc |
either a numeric vector giving the (equivalized disposable)
income, or (if |
weights |
optional; either a numeric vector giving the personal sample
weights, or (if |
years |
optional; either a numeric vector giving the different years of
the survey, or (if |
data |
an optional |
na.rm |
a logical indicating whether missing values should be removed. |
A numeric vector containing the value(s) of the weighted mean income is returned.
Andreas Alfons
weightedMean
data(eusilc)
incMean("eqIncome", weights = "rb050", data = eusilc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.