powered by
Simulate Gompertzian death distribution
gompertztrunc_simu( n, formula, coefs, dummy = NULL, sigma = NULL, seed = NULL, a0 = 10^-4, b = 1/10, verbose = FALSE )
dataframe of simulated death ages and covariate values
sample size
estimation formula
named vectors of coefficients and corresponding true values
vector flags for each coefficient
standard deviation for each variable
random seed to duplicate data
Gompertz alpha parameter
Gompertz b parameter
print internal check if true
gompertztrunc_simu(n=1000, formula = death_age ~ sex + ambient_temp, coefs = c('sex'=-0.8, 'ambient_temp'=0.3), dummy=c(TRUE,FALSE))
Run the code above in your browser using DataLab