Skip to contents

Print Method for TMB Mixed-Effects Demand Model

Usage

# S3 method for class 'beezdemand_tmb'
print(x, ...)

Arguments

x

An object of class beezdemand_tmb.

...

Additional arguments (currently unused).

Value

Invisibly returns the input object x.

Examples

# \donttest{
data(apt)
fit <- fit_demand_tmb(apt, equation = "exponential", verbose = 0)
#>   equation='exponential': Dropped 14 zero-consumption observations (146 remaining).
print(fit)
#> 
#> TMB Mixed-Effects Demand Model
#> 
#> Call:
#> fit_demand_tmb(data = apt, equation = "exponential", verbose = 0)
#> 
#> Equation: exponential 
#> Convergence: Yes 
#> Number of subjects: 10 
#> Number of observations: 146 
#> Observations dropped (zeros): 14 
#> Random effects: 2 (~, Q0 + alpha, 1) 
#> Log-likelihood: 40.53 
#> AIC: -69.07 
#> 
#> Fixed Effects:
#>       Q0.0    alpha.0   logsigma   logsigma logsigma_e    rho_raw 
#>     1.8800    -5.5720    -0.9506    -0.7772    -1.9469    -0.4593 
#> 
#> Use summary() for full results.
# }