Default returns fitted values on the model's native likelihood scale
(log scale for "exponential", natural/LL4 scale for others), matching
augment(fit)$.fitted. Set scale = "natural" to back-transform.
Arguments
- object
A
beezdemand_tmbobject.- scale
One of
"model"(default) or"natural".- level
One of
"subject"(default; conditions on the subject random effects) or"population"(random effects set to zero, giving the population-mean values). Seepredict.beezdemand_tmb().- ...
Unused.
Examples
# \donttest{
data(apt)
fit <- fit_demand_tmb(apt, equation = "exponential", verbose = 0)
#> equation='exponential': Dropped 14 zero-consumption observations (146 remaining).
head(fitted(fit))
#> [1] 2.315140 2.267293 2.219942 2.173084 2.126712 2.080822
# }
