FittedExcess: Fitted values in excess

Description Usage Arguments Value References Examples

Description

Probability of fitted values being higher than a cutoff value.

Usage

1
FittedExcess(..., cutoff = 1, rnd = 3)

Arguments

...

objects of class inla with fitted values.

cutoff

value above which fitted values would be in excess.

rnd

integer indicating the number of decimal places to be used.

Value

vector if only one model with fitted values is evaluated; data.frame or list otherwise.

References

Blangiardo, Marta, and Michela Cameletti. Spatial and Spatio-temporal Bayesian Models with R-INLA. John Wiley & Sons, 2015.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
data(sp)

mod1 <- inla(aan ~ f(id, model = 'bym', graph = sp.adj),
             E = eaan,
             family = 'poisson', data = spn,
             control.predictor = list(compute = TRUE))

mod2 <- inla(aan ~ shvn + f(id, model = 'bym', graph = sp.adj),
             E = eaan,
             family = 'poisson', data = spn,
             control.predictor = list(compute = TRUE))

see <- RandomEffectsExcess(mod1, mod2, cutoff = 1)
summary(see)

oswaldosantos/INLAOutputs documentation built on May 24, 2019, 5 p.m.