How It Works
The Stats API applies regression adjustment to reduce variance. You provide pre-exposure measurements alongside your post-exposure data, and the API uses the correlation between them to produce more precise estimates.Configure Variance Reduction for Analysis
Include pre-exposure data in theadjustment field within your summary data:
Adjustment Fields
Theadjustment object contains:
| Field | Description |
|---|---|
mean | Mean of the pre-exposure measurements |
variance | Variance of the pre-exposure measurements |
covariance | Covariance between pre-exposure and post-exposure values |
Configure Variance Reduction for Power Analysis
For power analysis, include the expected covariance adjustment in your power data:Power Analysis Adjustment Fields
| Field | Description |
|---|---|
baselineVariance | Variance of the pre-exposure covariate |
baselineCovariance | Covariance between the pre-exposure covariate and the outcome |
Interpret Results
The API returns both adjusted and unadjusted estimates. The treatment effect estimate benefits from the reduced variance, providing tighter confidence intervals. The response includes avarianceReductionRate field showing the achieved reduction.

