← Back to Skills Marketplace
100
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install sample-size-power-calculator
Description
Advanced sample size and power calculations for complex study designs including survival analysis, clustered designs, and multiple comparisons.
Usage Guidance
This package appears to implement legitimate sample-size calculations, but there are multiple documentation⇄code mismatches and some missing input validation. Before installing or running it: 1) Review and reconcile SKILL.md examples with scripts/main.py argument names (use --help to confirm valid flags). 2) Install numpy/scipy in an isolated environment (venv/container). 3) Test edge cases (missing args, hazard_ratio <= 0, None effect sizes) because the script assumes required numeric inputs and may raise exceptions. 4) Confirm the non-inferiority path (main.py asks for sigma via API use; CLI just prints a message). 5) Ignore the SKILL.md 'Network Access: High' entry unless you add network code — the current script makes no network calls. 6) Run the script on non-sensitive sample data first and review outputs for correctness before using results in real study planning. If you need higher assurance, request the author to fix documentation mismatches and add explicit input validation and argument parsing checks.
Capability Analysis
Type: OpenClaw Skill
Name: sample-size-power-calculator
Version: 1.0.0
The skill bundle provides a statistical calculator for sample size and power analysis using standard libraries (numpy, scipy). The Python script (scripts/main.py) implements basic statistical formulas for t-tests, chi-square, and survival analysis without any high-risk behaviors like network access, file system manipulation, or shell execution. While the SKILL.md documentation contains a risk assessment table claiming 'High' risk for network access and external API calls, these appear to be artifacts of a generic template, as the actual code contains no such functionality. The agent instructions are well-structured, focusing on input validation and error handling.
Capability Assessment
Purpose & Capability
The name/description (advanced sample size & power calculations) match the included implementation (scripts/main.py) and the declared dependencies (numpy, scipy). The script implements t-tests, chi-square, survival (log-rank), ANOVA, non-inferiority helpers and dropout adjustment — all coherent with the stated purpose.
Instruction Scope
SKILL.md instructs the agent/user to run scripts/main.py and provides example usage, but several documented argument names and examples do not match the actual CLI implemented in scripts/main.py (e.g., SKILL.md examples show '--test ttest' or '--test survival' and table uses names like 'ttest'/'chi2', while main.py requires choices like 'ttest-ind','ttest-paired','chisq','survival','anova','noninf'). The documentation also flags 'Network Access' as High even though the packaged script contains no network calls. The SKILL.md asks to confirm inputs and sandboxing (good) but the runtime instructions are inconsistent and could lead to runtime errors or mis-invocation.
Install Mechanism
There is no install spec; this is instruction-plus-source. requirements.txt lists only numpy and scipy, which are reasonable and proportional to the computations performed. No downloads from untrusted URLs or extract operations are present.
Credentials
The skill requests no environment variables, no credentials, and no special config paths. This is appropriate for a local numerical script. (No evidence of hidden credential usage in code.)
Persistence & Privilege
The skill does not request 'always' presence and does not modify other skills or system settings. It runs as a standalone script and does not request elevated or persistent privileges.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install sample-size-power-calculator - After installation, invoke the skill by name or use
/sample-size-power-calculator - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of advanced sample size and power calculator:
- Provides sample size and power calculations for complex study designs, including survival analysis, clustered designs, and multiple comparison scenarios.
- Supports t-test (paired/independent), chi-square, log-rank (survival), ANOVA, regression, and non-inferiority designs.
- Includes structured workflow for reproducible, audit-ready outputs with explicit assumptions and fallback/error handling.
- Features CLI-based interaction (`scripts/main.py`) with comprehensive parameter and risk documentation.
- Emphasizes security, validation, and constraints to ensure responsible data handling and output consistency.
Metadata
Frequently Asked Questions
What is Sample Size & Power Calculator (Advanced)?
Advanced sample size and power calculations for complex study designs including survival analysis, clustered designs, and multiple comparisons. It is an AI Agent Skill for Claude Code / OpenClaw, with 100 downloads so far.
How do I install Sample Size & Power Calculator (Advanced)?
Run "/install sample-size-power-calculator" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Sample Size & Power Calculator (Advanced) free?
Yes, Sample Size & Power Calculator (Advanced) is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Sample Size & Power Calculator (Advanced) support?
Sample Size & Power Calculator (Advanced) is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Sample Size & Power Calculator (Advanced)?
It is built and maintained by AIpoch (@aipoch-ai); the current version is v1.0.0.
More Skills