circ_sample_tmb | R Documentation |
Sample from TMB object, using naomi::sample_tmb
. Saves
changing object to naomi
format. Also produces and returns standard
deviation report outputted by sdreport, if desired.
circ_sample_tmb(
fit = NULL,
obj = NULL,
opt,
sdreport = FALSE,
nsample = 1000,
...
)
obj |
TMB object/AD model outputted by MakeADFun. |
opt |
Optimised TMB model, outputted by optimisation function such as nlminb or optim. |
sdreport |
Boolean of whether to produce |
nsample |
Number of samples to be generated, Default: 1000 |
... |
Further arguments passed to |
Object of class "naomi_fit", containing the original TMB object
("obj"), the standard deviation report for optimised AD model (from
sdreport) and n_samples
samples for the (cumulative) incidence
and hazard rate of circumcision for the region(s) in question.
sdreport
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.