euromod.eu_euromod.calibrate.descriptives¶
Statistics that describe a household sample.
All functions take a household sample and return a small table. Quantiles are quantiles of gross income over the whole sample, with survey weights; percentages are on a 0-100 scale.
Below are listed the main public classes of the euromod.eu_euromod.calibrate.descriptives module.
|
Benefits as a share of gross income, by income quantile. |
|
How marriage and children go together in the sample. |
|
Gini coefficients of gross and disposable household income. |
|
Share of total income held by each quantile, for gross and disposable income. |
|
Size and composition of the sample. |
|
Mean net tax rate by income quantile, for each household type. |
Functions¶
- euromod.eu_euromod.calibrate.descriptives.benefit_ratio_by_quantile(sample, n=10, benefit='ils_benmt', income='ils_origrepy')¶
Benefits as a share of gross income, by income quantile.
The ratio is computed for each household and then averaged, so it describes the typical household in a quantile rather than the quantile’s totals.
- Parameters:
sample (pandas.DataFrame) – A household sample.
n (
int) – Number of quantiles.benefit (
str) – Household total to take the ratio of; default means-tested benefits.income (
str) – Household gross income the sample was built with.
- Returns:
Rows
Q1..Qnandall; columnsratio(mean ratio, in percent) andweight(total survey weight, for combining quantiles).- Return type:
- euromod.eu_euromod.calibrate.descriptives.family_composition(sample)¶
How marriage and children go together in the sample.
- Returns:
Shares between 0 and 1:
children_among_singleandchildren_among_married(households with children, among those with an unmarried or a married head),single_among_childrenandmarried_among_children(the reverse).- Return type:
- euromod.eu_euromod.calibrate.descriptives.gini_coefficients(sample)¶
Gini coefficients of gross and disposable household income.
- Returns:
grossanddisposable.- Return type:
Share of total income held by each quantile, for gross and disposable income.
Each column ranks households by its own income: gross shares by gross income, disposable shares by disposable income.
- Parameters:
sample (pandas.DataFrame) – A household sample.
n (
int) – Number of quantiles (5 for quintiles).
- Returns:
Rows
Q1..Qn; columnsgrossanddisposable, in percent.- Return type:
- euromod.eu_euromod.calibrate.descriptives.sample_characteristics(sample)¶
Size and composition of the sample.
- Returns:
n(households),head_age(mean age of the head),share_married(share of households with a married head),share_children(share with at least one child),children_per_family(mean number of children among households that have any) andhh_size(mean household size). Shares are between 0 and 1. All means use survey weights.- Return type:
- euromod.eu_euromod.calibrate.descriptives.tax_rates_by_quantile(sample, n=10, household_types=HOUSEHOLD_TYPES)¶
Mean net tax rate by income quantile, for each household type.
The quantiles are those of the whole sample, so a column compares households of one type with all households at the same income.
- Parameters:
sample (pandas.DataFrame) – A household sample.
n (
int) – Number of quantiles (10 for deciles).household_types (
dict) – Conditions by name; defaultHOUSEHOLD_TYPES.
- Returns:
Rows
Q1..Qn; one column per household type, in percent.- Return type: