exekiel179/pingouin-psych-stats/pg-regression-mediation
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 linear regression, binary logistic regression, and mediation analysis with reproducible reporting.
Install
npx vskill@latest install exekiel179/pingouin-psych-stats/pg-regression-mediationSKILL.md
PG Regression Mediation
Use for regression-style questions that Pingouin supports directly.
Load
Read:
../../references/supervision-gates.md../../references/pingouin-api-quickref.md../../references/apa-output-template.mdif writing results.
Function Choice
- Continuous outcome, additive linear predictors ->
pg.linear_regression. - Binary outcome ->
pg.logistic_regressionwithX, y. - Single or multiple mediator path model ->
pg.mediation_analysis.
Required Inputs
- Outcome variable and scale.
- Predictor list.
- Covariates and whether they are theoretical controls.
- Binary coding for logistic regression.
- Mediation paths:
x,m,y. - Bootstrap count and seed for mediation.
Code Patterns
Linear regression:
Logistic regression:
Mediation:
Reporting
- Regression: report coefficient, SE, statistic, p, CI, and model R-squared/adjusted R-squared if returned.
- Logistic: report coefficient and convert to odds ratio when useful with
np.exp(coef). - Mediation: report total, direct, indirect paths, bootstrap CI, seed, and bootstrap count.
Guardrails
- Pingouin linear regression is OLS; it is not a mixed model or SEM package.
- For Pingouin 0.6.1,
logistic_regressiontakesX, y; verify the signature before using examples from older wrappers. - Check residual assumptions and influential cases when substantive conclusions depend on them.
- Do not present mediation as causal unless temporal order, design, and assumptions support it.
- Do not hide automatic missing-data removal; report effective n.
- Mediation bootstrap p-values vary with seed and bootstrap count.
- End result-bearing answers with one compact S0-S5 audit line.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/pg-regression-mediation/SKILL.md
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
[](https://verified-skill.com/skills/exekiel179/pingouin-psych-stats/pg-regression-mediation)