The tidy()
function provides a data frame of the mean, standard deviation,
quantiles
# S3 method for hts_inla
tidy(x, ...)
object of class "hts_inla"
extra arguments to pass to tidy()
. Currently unused
dataframe with column names: "variable", "mean", "sd", and quantiles for 0.025, 0.5, and 0.975, as well as mode and kld
hts_example_model
#> <hts_inla> model (fit in 26.49s)
#> Formula:
#> • ~
#> • pr
#> • avg_lower_age + hts(who_subregion, country)
#>
tidy(hts_example_model)
#> # A tibble: 2 × 8
#> variable mean sd q_025 q_05 q_975 mode kld
#> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 avg_lower_age -0.00433 0.00330 -0.0108 -0.00433 0.00214 -0.00433 0.0000000265
#> 2 Intercept 0.251 0.0502 0.144 0.253 0.347 0.256 0.0000279