# Simulate age at death data from Gompertz model:
ages <- SampleRandAge(n = 100, theta = c(b0 = -5, b1 = 0.1))
# Simulate age at death data from Siler model:
ages <- SampleRandAge(n = 100, theta = c(a0 = 0, a1 = 1, c = 0.001,
b0 = -5, b1 = 0.1), model = "GO",
shape = "bathtub")
Run the code above in your browser using DataLab