getFollowUpDistribution: Get the distribution of follow-up time

View source: R/Power.R

getFollowUpDistributionR Documentation

Get the distribution of follow-up time

Description

Get the distribution of follow-up time

Usage

getFollowUpDistribution(population, quantiles = c(0, 0.25, 0.5, 0.75, 1))

Arguments

population

A data frame describing the study population as created using the createStudyPopulation function. This should at least have these columns: treatment, timeAtRisk.

quantiles

The quantiles of the population to compute minimum follow-up time for.

Details

Get the distribution of follow-up time as quantiles. Follow-up time is defined as time-at-risk, so not censored at the outcome.

Value

A data frame with per treatment group at each quantile the amount of follow-up time available.


OHDSI/CohortMethod documentation built on Feb. 9, 2024, 9:01 a.m.