Skip to contents

This function simulates cases from a uniform distribution, where the primary event times are uniformly distributed between 0 and t.

Usage

simulate_uniform_cases(sample_size = 1000, t = 60)

Arguments

sample_size

The number of cases to simulate.

t

Upper bound of the uniform distribution to generate primary event times.

Value

A data.frame with two columns: case (case number) and ptime (primary event time).

Examples

simulate_uniform_cases(sample_size = 5, t = 10)
#>   case     ptime
#> 1    1 7.7320800
#> 2    2 6.2226937
#> 3    3 9.3023574
#> 4    4 7.0318862
#> 5    5 0.9102571