load_engel_with_weights
datasets.load_engel_with_weights()Load Engel (1857) food expenditure data with a sampling weights column.
Mainly used to compare weighted and unweighted quantile regression against quantreg::rq in R. The w column is the inverse probability of selection, where the selection probability decreases with income.
Returns
| Name | Type | Description |
|---|---|---|
polars.DataFrame |
Food expenditure data with an additional w column. |