| gompertztrunc_simu {gompertztrunc} | R Documentation | 
Simulate Gompertzian death distribution
Description
Simulate Gompertzian death distribution
Usage
gompertztrunc_simu(
  n,
  formula,
  coefs,
  dummy = NULL,
  sigma = NULL,
  seed = NULL,
  a0 = 10^-4,
  b = 1/10,
  verbose = FALSE
)
Arguments
n | 
 sample size  | 
formula | 
 estimation formula  | 
coefs | 
 named vectors of coefficients and corresponding true values  | 
dummy | 
 vector flags for each coefficient  | 
sigma | 
 standard deviation for each variable  | 
seed | 
 random seed to duplicate data  | 
a0 | 
 Gompertz alpha parameter  | 
b | 
 Gompertz b parameter  | 
verbose | 
 print internal check if true  | 
Value
dataframe of simulated death ages and covariate values
Examples
gompertztrunc_simu(n=1000, formula = death_age ~ sex + ambient_temp,
coefs = c('sex'=-0.8, 'ambient_temp'=0.3), dummy=c(TRUE,FALSE))
[Package gompertztrunc version 0.1.2 Index]