# NOT RUN {
## Use threefry engine
# with rxweibull you have to explicitly state n
rxweibull(shape = 1, scale = 4, n = 10)
# You can parallelize the simulation using openMP
rxweibull(shape = 1, scale = 4, n = 10, ncores = 2)
rxweibull(3)
## This example uses `rxweibull` directly in the model
rx <- RxODE({
a <- rxweibull(1, 3)
})
et <- et(1, id = 1:2)
s <- rxSolve(rx, et)
# }
Run the code above in your browser using DataLab