randomization
Skill0 starsChanged 13 months agoMITView on GitHub
Implement proper randomization procedures for experiments. Use when: (1) Assigning participants to conditions, (2) Ensuring unbiased allocation, (3) Meeting CONSORT standards, (4) Pre-registration.
In this repository23 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- docs/CLAUDE.mdCLAUDE.md
- ai-checkSkill
- blindingSkill
- citation-formatSkill
- data-visualizationSkill
- effect-sizeSkill
- experiment-designSkill
- hypothesis-testSkill
- inclusion-criteriaSkill
- irb-protocolSkill
- literature-gapSkill
- meta-analysisSkill
- power-analysisSkill
- pre-registrationSkill
- prisma-diagramSkill
- publication-prepSkill
- research-questionsSkill
- results-interpretationSkill
- risk-of-biasSkill
- sensitivity-analysisSkill
- subgroup-analysisSkill
- synthesis-matrixSkill
The file
Files
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
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

