stratification-mobility
CommunityQuantify social mobility with mobility metrics.
Data & Analytics#stratification#intergenerational mobility#rank-rank slope#occupational prestige#transition matrix#inequality metrics
Authorxjtulyc
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Social stratification analysis often requires estimating how strongly family background predicts adult outcomes and how people move across occupations and class positions across generations.
Core Features & Use Cases
- Estimate intergenerational income mobility: compute intergenerational income elasticity (IGE) using log-log regression and estimate the rank-rank slope (Chetty rank-rank) with bootstrap confidence intervals.
- Measure mobility outcomes: calculate upward mobility rates such as P(top quintile | bottom quintile), and analyze occupational prestige using ISEI scoring.
- Build occupational transition evidence: assign EGP class labels, compute origin-to-destination transition matrices, and derive social fluidity odds ratios from contingency tables.
Quick Start
Use the stratification-mobility skill to estimate IGE, rank-rank slope with a bootstrap confidence interval, and an upward mobility rate from your parent_income and child_income columns.
Dependency Matrix
Required Modules
pandas>=1.5statsmodels>=0.14numpy>=1.23matplotlib>=3.6scipy>=1.9
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: stratification-mobility Download link: https://github.com/xjtulyc/awesome-rosetta-skills/archive/main.zip#stratification-mobility Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.