survey-analysis-polisci

Estimate weighted descriptive statistics and regression models for complex political survey designs.

33|6|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill survey-analysis-polisci
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: survey-analysis-polisci
Source: https://github.com/xjtulyc/awesome-rosetta-skills/tree/main/skills/09-political-science/survey-analysis-polisci
Command: npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill survey-analysis-polisci

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you analyze political survey data correctly by accounting for complex sampling designs, survey weights, and cross-national measurement differences so your inference is valid and interpretable.

Core Features & Use Cases

  • Complex-sample–aware weighted descriptives: compute weighted frequency tables, weighted means, and weighted cross-tabulations using ANES/CCES/ESS-style weight variables.
  • Weighted binary and ordinal modeling: fit weighted (frequency-weighted) logistic regression and ordered logit for Likert or ordinal outcomes, suitable for political survey modeling.
  • Weight calibration and design-based adjustment: calibrate survey weights via post-stratification raking and apply Rao–Scott chi-square adjustments for design effects.
  • Cross-national equivalence workflow support: structure analysis around configural/metric/scalar invariance steps and enable country-level comparisons using ESS weights.

Quick Start

Use the survey-analysis-polisci skill to load your ANES or ESS dataset, compute weighted descriptive tables, estimate a weighted logit or ordered logit model, and (optionally) rake weights to match target margins.

Frequently Asked Questions about survey-analysis-polisci

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run weighted political survey analysis with complex sampling design in Python?

Weighted political survey analysis is performed by applying frequency-weighted estimation and iterative proportional fitting using pandas, statsmodels, numpy, and scipy to compute weight-aware crosstabs and regression models that respect complex sampling designs.

What is Rao-Scott chi-square adjustment for survey data?

Rao-Scott chi-square adjustment is a design-based correction technique applied to weighted cross-tabulations in complex survey data, adjusting standard chi-square tests to account for clustering and stratification effects.

Can I fit an ordered logit model for Likert outcomes using ANES survey weights?

Yes, you can fit a frequency-weighted ordered logit model for Likert or ordinal outcomes using ANES survey weights, applying statsmodels to estimate regression coefficients while respecting the complex sampling design.

How do I calibrate survey weights using post-stratification raking?

Survey weights are calibrated via post-stratification raking by applying iterative proportional fitting to adjust sample weights until they match known target population margins across demographic variables.

Does this Skill support cross-national equivalence workflows with ESS data?

Yes, cross-national equivalence workflows are supported by structuring analysis around configural, metric, and scalar invariance steps, enabling country-level comparisons using ESS weights and design-based adjustments.

When should I not use unweighted descriptive statistics for political survey analysis?

Unweighted descriptive statistics should be avoided when your political survey data involves complex sampling designs, because ignoring survey weights and design effects leads to biased estimates and invalid inference.