microdf

Official

Analyze weighted survey data with ease.

AuthorPolicyEngine
Version1.0.0
Installs0

System Documentation

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.

Dependency Matrix

Required Modules

microdf-pythonpandas

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: microdf
Download link: https://github.com/PolicyEngine/policyengine-claude/archive/main.zip#microdf

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.