This app asks participants for their household’s monthly disposable income and household size, elicits their perceived position in the French living-standard distribution, and then shows their actual position.
Calculation
The app divides monthly household income by its consumption units. To avoid age and household-configuration questions, it assumes one consumption unit for the first household member and 0.5 for each additional member. The resulting amount is interpolated between the income thresholds in `C.DECILES` in `__init__.py` to calculate a percentile rank. Values above the 95th-percentile threshold are reported as 95.
This is a simplified household-size adjustment; edit `C.DECILES` if you want to use different threshold values or a different data year. Edit `income_per_consumption_unit()` in `__init__.py` if you want to change the household-size adjustment.
Data fields
- `household_income`: monthly household disposable income in euros.
- `household_size`: number of people in the household.
- `perceived_income_rank_before`: perceived percentile rank (0–100).
- `confidence_perceived_income_rank_before`: confidence in the estimate (50–100).
- `true_income_rank`: calculated rank, computed when the results page is displayed.
In practice: How to make it run?
Download income_rank.zip from this repository
Places the files in your oTree project
Add the income_rank folder to your otree main folder
Add the following configuration to the SESSION_CONFIGS list in your settings.py file:
dict(
name='Income_Rank',
display_name="Household Income Rank Pyramid",
app_sequence=['income_rank'],
num_demo_participants=10,
),