What problem does it solve?
Analyzing survey microdata often requires handling weighted observations for accurate statistics, inequality metrics, and poverty calculations. MicroDF simplifies these complex operations, ensuring your analysis reflects the true population distribution.
Core Features & Use Cases
- Weighted Statistics: Calculate accurate means, medians, sums, and standard deviations for weighted data.
- Inequality Metrics: Easily compute Gini coefficients and top X% income shares.
- Poverty Analysis: Determine poverty rates, poverty gaps, and deep poverty rates.
- Use Case: Calculate the Gini coefficient and poverty rate for a simulated population of households, using their weighted income data to understand the distributional impact of a policy.
Quick Start
Use the microdf skill to calculate the weighted mean income and Gini coefficient from your df DataFrame with a weights column.