View source: R/bage_mod-methods.R
computations | R Documentation |
Get information on computations performed by function fit()
.
The information includes the total time used for fitting, and
the time used for two particular tasks that can be slow:
running the optimizer stats::nlminb()
,
and drawing from the multivariate normal returned
by the TMB. It also includes values returned by the optimizer:
the number of iterations needed, and messages about convergence.
computations(object)
object |
A fitted object of class |
A tibble with the following variables:
time_total
Seconds used for whole fitting process.
time_optim
Seconds used for optimisiation.
time_report
Seconds used by function TMB::sdreport()
.
iter
Number of iterations required for optimization.
message
Message about convergence returned by optimizer.
mod_pois()
,mod_binom()
,mod_norm()
Specify a model
fit()
Fit a model
tidy()
Summarise a model
set_n_draw()
Specify number of posterior draws
mod <- mod_pois(divorces ~ age + sex + time,
data = nzl_divorces,
exposure = population) |>
fit()
computations(mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.