exekiel179/pingouin-psych-stats/pg-multivariate

Claude Code and agent skill by exekiel179/pingouin-psych-stats

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Run or generate Pingouin code for multivariate comparisons — Hotelling's T-squared test (multivariate_ttest) — plus the multivariate assumption checks box_m (equal covariance) and multivariate_normality, for designs with several dependent variables.

Install

npx vskill@latest install exekiel179/pingouin-psych-stats/pg-multivariate

SKILL.md

PG Multivariate

Use when several continuous dependent variables are compared together (a mean-vector / profile question), rather than one outcome at a time.

Load

Read:

  • ../../references/supervision-gates.md
  • ../../references/pingouin-api-quickref.md
  • ../../references/apa-output-template.md if writing results.

Decision Rules

  • Compare one group's mean vector to a reference (one-sample) -> pg.multivariate_ttest(X).
  • Compare mean vectors of two independent groups -> pg.multivariate_ttest(X, Y).
  • Paired multivariate comparison (same participants) -> pg.multivariate_ttest(X, Y, paired=True).
  • Check equal covariance matrices across groups (assumption) -> pg.box_m(data, dvs, group).
  • Check multivariate normality (assumption) -> pg.multivariate_normality(X).

Required Inputs

  • Two or more continuous dependent variables (the outcome vector).
  • Grouping column for the two-sample test and Box's M.
  • Whether the comparison is one-sample, independent, or paired.
  • X/Y are arrays or frames of shape (n, k); drop rows with missing DVs first.

Code Patterns

Hotelling's T-squared, two independent groups:

python
X = df.loc[df["group"].eq("A"), ["v1", "v2", "v3"]].to_numpy()
Y = df.loc[df["group"].eq("B"), ["v1", "v2", "v3"]].to_numpy()
res = pg.multivariate_ttest(X, Y).round(3)
pg.print_table(res)

One-sample (mean vector vs zero; subtract a reference first if needed):

python
res = pg.multivariate_ttest(df[["v1", "v2", "v3"]].to_numpy()).round(3)
pg.print_table(res)

Assumption checks:

python
pg.box_m(df, dvs=["v1", "v2", "v3"], group="group") # equal covariance
pg.multivariate_normality(df[["v1", "v2", "v3"]], alpha=0.05) # Henze-Zirkler

Output Checks

multivariate_ttest returns index hotelling with T2, F, df1, df2, pval. box_m returns Chi2, df, pval, equal_cov (bool). multivariate_normality returns (hz, pval, normal); normal=False warns against assuming multivariate normality.

Guardrails

  • Hotelling's T-squared needs n greater than the number of DVs and roughly multivariate-normal data; check multivariate_normality.
  • A significant Box's M (unequal covariance) undermines the pooled test; report it.
  • Pingouin covers Hotelling's T-squared, not full factorial MANOVA — for that recommend statsmodels or R.
  • Report T2, F, df, p, and which assumption checks were run.
  • End result-bearing answers with one compact S0-S5 audit line.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/exekiel179/pingouin-psych-stats/pg-multivariate/badge)](https://verified-skill.com/skills/exekiel179/pingouin-psych-stats/pg-multivariate)

Something wrong with this skill or its page? Tell us.