provider experiments POST
/api/projects/{project_id}/experiments/calculate_running_time/ @utdk/posthog
/api/projects/{project_id}/experiments/calculate_running_time/ experiments_calculate_running_time_create
Estimate the recommended sample size and running time for an experiment.
Pure statistical calculation — does not read or write any experiment. Pass the metric type, a
minimum detectable effect, and either a baseline value or raw baseline statistics. When
`exposure_rate_per_day` is provided, the response also includes the estimated running time in days.
- project_id path required
- Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
- string
Try it
Authentication
Configure credentials for PostHog API
Code snippet
Updates live as you fill in the form above.
TypeScript
import posthog from '@utdk/posthog';
await posthog.experimentsCalculateRunningTimeCreate({
"number_of_variants": 2
})