sample-size-basic
Basic sample size calculator for clinical research planning with common statistical scenarios
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/aipoch-ai/sample-size-basicWhat This Skill Does
The sample-size-basic skill serves as an essential utility for researchers, biostatisticians, and clinical trial coordinators. It automates the often tedious process of power analysis and sample size estimation, allowing users to determine the minimum number of participants required to detect a statistically significant effect. By taking user-defined parameters such as significance level, power, and expected effect size, the tool performs the necessary statistical calculations internally to provide a clear, actionable sample size for clinical study protocols.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/aipoch-ai/sample-size-basic
Ensure you have completed the prerequisite Python environment setup as defined in the requirements.txt file provided within the source repository.
Use Cases
- Grant Writing: Quickly provide robust statistical justification for study size in competitive funding applications.
- Protocol Design: Evaluate the feasibility of a clinical trial by determining if the required subject recruitment numbers are achievable within the desired timeframe.
- Educational Labs: Facilitate statistics courses by allowing students to observe how varying parameters like alpha and power influence the final sample size requirement.
- Preliminary Research: Design pilot studies with mathematically grounded estimates to optimize resources before embarking on large-scale investigations.
Example Prompts
- "Calculate the sample size for a two-sample t-test with an alpha of 0.05, power of 0.80, and a Cohen's d effect size of 0.5."
- "Determine the total subjects needed for a chi-square test where the baseline rate is 0.25, looking for an effect size of 0.1."
- "I need to run a study with 90% power and 0.05 significance for a proportion test. What is the required sample size per group?"
Tips & Limitations
- Statistical Assumptions: Always review the statistical assumptions associated with the test type chosen (e.g., normality for t-tests). This tool assumes standard parametric distributions unless otherwise specified.
- Data Integrity: Ensure the effect size provided is grounded in preliminary data or literature reviews to maintain the validity of your study.
- Limitations: This is a basic estimator. For complex longitudinal data or multi-center trial designs with covariate adjustments, please consult with a professional statistician. The tool does not perform post-hoc power analysis; it is strictly for planning purposes.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-aipoch-ai-sample-size-basic": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, code-execution
Related Skills
mechanism-flowchart
Generates Mermaid flowchart code and visual diagrams for pathophysiological.
reference-style-sync
One-click synchronization and standardization of reference formats in literature management tools, intelligently fixing metadata errors.
clinical-data-cleaner
Use when cleaning clinical trial data, preparing data for FDA/EMA submission, standardizing SDTM datasets, handling missing values in clinical studies, detecting outliers in lab results, or converting raw CRF data to CDISC format. Cleans and standardizes clinical trial data for regulatory compliance with audit trails.
metagenomic-krona-chart
Analyze data with `metagenomic-krona-chart` using a reproducible workflow, explicit validation, and structured outputs for review-ready interpretation.
anatomy-quiz-master
Generate interactive anatomy quizzes for medical education with multiple question types, difficulty levels, and anatomical regions. Supports gross anatomy, neuroanatomy, and clinical correlations for self-assessment and exam preparation.