Agent skill
randomization
Implement proper randomization procedures for experiments. Use when: (1) Assigning participants to conditions, (2) Ensuring unbiased allocation, (3) Meeting CONSORT standards, (4) Pre-registration.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/randomization
SKILL.md
Randomization Skill
Purpose
Implement proper random assignment to minimize selection bias.
Randomization Methods
1. Simple Randomization
- Coin flip, random number generator
- Best for large samples (N>200)
- Risk of imbalance in small samples
2. Block Randomization
- Ensures equal group sizes
- Blocks of 4, 6, or 8
- Example: AABB, ABAB, BABA, BBAA
3. Stratified Randomization
- Balance prognostic factors
- Stratify by sex, age group, severity
- Then randomize within strata
4. Minimization
- Dynamic allocation
- Minimizes imbalance across factors
- Used in small trials
Implementation
Steps:
- Generate random sequence (with seed)
- Document sequence generation
- Implement allocation concealment
- Execute randomization
- Document actual allocation
Example (Python):
import random
random.seed(12345) # Document seed
sequence = ['A', 'B'] * 50 # 100 participants
random.shuffle(sequence)
Version: 1.0.0
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?