Glance at a beezdemand_tmb Model
Usage
# S3 method for class 'beezdemand_tmb'
glance(x, ...)Value
A one-row tibble of model-level statistics with columns:
model_class:"beezdemand_tmb"backend:"TMB_mixed"equation_form: The demand equation that was fittednobs: Number of observationsn_subjects: Number of subjectsn_random_effects: Total number of random-effect columns per subjectconverged: Convergence statuslogLik,AIC,BIC: Model fit statistics
The canonical columns match glance.beezdemand_nlme(), so
backend-agnostic code needs no dispatch glue.
Examples
# \donttest{
data(apt)
fit <- fit_demand_tmb(apt, equation = "exponential", verbose = 0)
#> equation='exponential': Dropped 14 zero-consumption observations (146 remaining).
glance(fit)
#> # A tibble: 1 × 10
#> model_class backend equation_form nobs n_subjects n_random_effects converged
#> <chr> <chr> <chr> <int> <int> <int> <lgl>
#> 1 beezdemand_… TMB_mi… exponential 146 10 2 TRUE
#> # ℹ 3 more variables: logLik <dbl>, AIC <dbl>, BIC <dbl>
# }
