conjoint-experiment

Estimate AMCEs from conjoint survey data with clustered standard errors.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandas, statsmodels, numpy, matplotlib.

What problem does it solve?

This Skill helps you design conjoint survey experiments and turn respondent profile-choice data into interpretable estimates of attribute effects (AMCEs), including marginal means, interactions, and subgroup heterogeneity.

Core Features & Use Cases

  • Conjoint profile design: Generate randomized full/partial profile sets for tasks and respondents so each attribute level is comparably varied across tasks.
  • AMCE estimation with clustered uncertainty: Estimate Average Marginal Component Effects using a linear probability model (OLS) with standard errors clustered by respondent to respect within-respondent correlation.
  • Marginal means, interactions, and heterogeneity: Compute marginal means, estimate interaction effects, and re-estimate AMCEs by subgroup (e.g., party or ideology) to quantify preference differences.

Quick Start

Use the conjoint-experiment skill to estimate AMCEs from your CSV at /data/conjoint_survey_results.csv for outcome column chosen, clustering by respondent_id, and using the attributes listed in your dataset.

Frequently Asked Questions about conjoint-experiment

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

FAQPage Schema
How do I estimate AMCEs from conjoint survey experiment data?

To estimate AMCEs from conjoint survey experiment data, use a linear probability model with dummy variables and standard errors clustered by respondent to account for within-respondent correlation.

What format should my dataset be in to calculate Average Marginal Component Effects?

Your dataset needs a long format with respondent_id, task_id, profile_id, a binary outcome like chosen, and attribute columns encoded as categorical levels for dummy-variable OLS estimation.

Can I analyze subgroup heterogeneity and interaction effects in a conjoint experiment?

Yes, you can analyze subgroup heterogeneity and interaction effects in a conjoint experiment by computing marginal means and re-estimating AMCEs by subgroups like party or ideology to quantify preference differences.

How do I design randomized conjoint survey profiles for political science research?

You can design randomized conjoint survey profiles for political science research by generating full or partial profile sets for tasks and respondents so each attribute level is comparably varied across tasks.

Does conjoint analysis with clustered standard errors work for measuring candidate evaluation and immigration preferences?

Conjoint analysis with clustered standard errors works for measuring candidate evaluation, policy trade-offs, immigration preferences, and partisan asymmetries by applying randomized conjoint tasks to respondent profile-choice data.

Why use clustered standard errors when estimating marginal means in survey experiments?

Clustered standard errors are used when estimating marginal means in survey experiments to respect within-respondent correlation, ensuring accurate uncertainty estimates from multiple profile choices made by the same individual.