# NOT RUN {
# generate example data
set.seed(1)
n = 50
X = cbind(matrix(1, n, 1),
matrix(rnorm(n*9, sd = 0.7), n, 9))
beta = rnorm(10, sd = 0.7)
times = simulate_t_weibull(n = n, lambda = 1, nu = 2,
X = X, beta = beta)
hist(times, 20)
# }
Run the code above in your browser using DataLab