Returns the fixed-effect RHS formulas for Q0 and alpha plus the
original random-effect specification preserved at fit time. The
Q0 and alpha formulas may differ when collapse_levels was used
to collapse factor levels asymmetrically.
Usage
# S3 method for class 'beezdemand_tmb'
formula(x, ...)Value
Named list list(Q0, alpha, random). Q0 and alpha are
one-sided formulas built from fit$formula_details. random is
the original random_effects argument value (round-trippable back
to fit_demand_tmb()).
Examples
# \donttest{
data(apt)
fit <- fit_demand_tmb(apt, equation = "exponential", verbose = 0)
#> equation='exponential': Dropped 14 zero-consumption observations (146 remaining).
formula(fit)
#> $Q0
#> ~1
#> <environment: 0x55ae677af650>
#>
#> $alpha
#> ~1
#> <environment: 0x55ae677af650>
#>
#> $random
#> Q0 + alpha ~ 1
#> <environment: 0x55ae6ea7f628>
#>
# }
