getFollowUpDistribution: Get the distribution of follow-up time

Description Usage Arguments Details Value

View source: R/Power.R

Description

Get the distribution of follow-up time

Usage

1
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.


escott12/CohortMethod documentation built on Dec. 20, 2021, 6:37 a.m.