# Clinical Sample Size Proportion Calculator AI Agent Connect

> Clinical Sample Size Proportion Calculator MCP handles the statistical heavy lifting for clinical trial design. Your AI client uses this tool to determine necessary participant counts based on expected prevalence, margin of error, and confidence levels. It accounts for real-world variables like attrition and design effects to ensure your study remains statistically sound.

## Overview
- **Category:** healthcare
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_7hR9crCgrFHBIGKT7CKVVdGUpjgPTmHtfNC7HK0d/ai-agent-connect
- **Tags:** clinical-trials, sample-size, statistics, biostatistics, research-design

## Description

Planning a clinical trial requires exact numbers to ensure your results are actually meaningful. This MCP gives your AI agent the statistical tools to calculate the sample sizes you need when dealing with proportion-based outcomes, such as disease prevalence or event rates. Instead of manually running formulas, you can simply tell your AI client the parameters of your study and get immediate, actionable results.

You can move from a basic estimate to a fully refined recruitment plan in seconds. The MCP allows you to factor in design effects and anticipated attrition so you don't end up underpowered. If you are unsure about your expected prevalence, you can run sensitivity analyses to see how different assumptions change your required headcount. It's built to handle the specific math required for biostatistics, providing everything from foundational counts to detailed calculation reports that break down the entire estimation process.

## Tools

### get_sensitivity_table
This tool creates a table showing how different expected proportions change your required sample size.

### get_adjusted_sample_size
This tool refines your initial sample size by factoring in design effects and expected attrition rates.

### get_base_sample_size
Use this to find the foundational sample size needed for a single proportion.

### get_full_calculation_report
This tool generates a complete breakdown of the entire sample size estimation process.

## Prompt Examples

**Prompt:** 
```
Calculate the full sample size report for a study with 20% expected prevalence, 5% margin of error, 95% confidence level, a design effect of 1.5, and 10% anticipated attrition.
```

**Response:** 
```
The required recruitment target is 212 participants to ensure 182 completers after 10% attrition, accounting for the 1.5 design effect.
```

**Prompt:** 
```
What is the base sample size for a 50% proportion with a 0.05 margin of error and 95% confidence?
```

**Response:** 
```
The base sample size is 385.
```

**Prompt:** 
```
Show me a sensitivity table for a 15% prevalence with a 5% margin of error and 95% confidence.
```

**Response:** 
```
The sensitivity analysis shows required sample sizes ranging from 120 to 250 as the proportion varies from 0.05 to 0.25.
```

## Capabilities

### Base Size Calculation
Your agent calculates the starting participant count for a specific proportion.

### Attrition Adjustment
The AI adjusts recruitment targets to account for participants who drop out of a study.

### Design Effect Integration
Your client incorporates design effects into the final sample size calculation.

### Sensitivity Analysis
The AI generates tables to show how varying prevalence impacts the required sample size.

### Detailed Reporting
Your agent produces full breakdowns of the estimation process including all base terms.

## Use Cases

### Protocol Design
Determine the necessary sample size for a new clinical trial based on expected event rates.

### Recruitment Planning
Calculate how many participants to recruit to ensure enough completers remain after attrition.

### Risk Assessment
Use sensitivity tables to see how much a change in prevalence affects your study requirements.

### Statistical Documentation
Generate detailed reports that show the math behind your sample size decisions.

## Benefits

- Accounts for attrition to prevent underpowered studies.
- Adjusts for design effects automatically.
- Provides sensitivity analysis to test different prevalence assumptions.
- Generates full calculation reports for documentation.

## How It Works

Connecting this MCP to your AI client gives you immediate access to statistical tools.

1. Connect your AI client to the Vinkius hosted MCP.
2. Provide your study parameters like prevalence, margin of error, and confidence level.
3. The AI uses the specific tools to run the calculations.
4. Receive the final sample size, adjusted targets, or full reports directly in your chat.

## Frequently Asked Questions

**How does this MCP handle attrition?**
The MCP uses the adjusted sample size tool to increase recruitment targets based on the percentage of anticipated dropouts you provide.

**Can I run sensitivity analyses?**
Yes, you can use the sensitivity table tool to see how different expected proportions change your required sample size.

**What kind of reports can the AI generate?**
The AI can generate a full calculation report that includes base terms, design effect adjustments, and attrition considerations.

**Which AI clients can use this MCP?**
You can connect this MCP to any compatible client such as Claude, Cursor, Windsurf, or VS Code.

**Does this tool account for design effects?**
Yes, the MCP includes tools to refine base sample sizes by incorporating design effect adjustments.

**How do I account for participant dropout in my calculation?**
You can use `get_adjusted_sample_size` to incorporate an attrition rate, which inflates the sample size to ensure the study remains powered after losses.

**What is the purpose of the design effect?**
The design effect is a correction factor used to account for increased variance in complex study designs, such as cluster sampling, compared to simple random sampling.

**Can I see how different prevalence rates affect my sample size?**
Yes, the `get_sensitivity_table` tool generates a range of sample sizes based on varying the expected proportion to show sensitivity to prevalence changes.
