Extract fitted values from a RiskMap model
Value
A numeric vector, or NULL when final conditional sampling was
skipped for a non-Gaussian model.
Examples
data(italy_sim)
fit <- glgpm(
formula = y ~ gp(),
data = italy_sim[1:100,],
family = "gaussian",
return_samples = TRUE,
messages = FALSE
)
fitted(fit)
#> [1] 7.513150 7.513150 7.513150 7.513150 7.513150 7.513150 7.513150
#> [8] 7.513150 7.513150 7.513150 11.707702 11.707702 11.707702 11.707702
#> [15] 11.707702 11.707702 11.707702 11.707702 11.707702 11.707702 10.937391
#> [22] 10.937391 10.937391 10.937391 10.937391 10.937391 10.937391 10.937391
#> [29] 10.937391 10.937391 10.644494 10.644494 10.644494 10.644494 10.644494
#> [36] 10.644494 10.644494 10.644494 10.644494 10.644494 8.262703 8.262703
#> [43] 8.262703 8.262703 8.262703 8.262703 8.262703 8.262703 8.262703
#> [50] 8.262703 4.938801 4.938801 4.938801 4.938801 4.938801 4.938801
#> [57] 4.938801 4.938801 4.938801 4.938801 11.241728 11.241728 11.241728
#> [64] 11.241728 11.241728 11.241728 11.241728 11.241728 11.241728 11.241728
#> [71] 7.829667 7.829667 7.829667 7.829667 7.829667 7.829667 7.829667
#> [78] 7.829667 7.829667 7.829667 11.388270 11.388270 11.388270 11.388270
#> [85] 11.388270 11.388270 11.388270 11.388270 11.388270 11.388270 10.307223
#> [92] 10.307223 10.307223 10.307223 10.307223 10.307223 10.307223 10.307223
#> [99] 10.307223 10.307223
