Skip to contents

Plots several summaries of an ngvb.list object.

Usage

# S4 method for ngvb.list,missing
plot(x, y, ...)

Arguments

x

An ngvb.list object (output of ngvb function)

y

Not used.

...

Extra arguments to be used in plot(x@LGM, ...) where x@LGM is an inla object.

Examples

if (FALSE) {
 #Here we fit an RW1 latent process to the jumpts time series
 plot(jumpts)

 #Fit LGM with INLA
 LGM     <- inla(y ~ -1 + f(x,  model = "rw1"),
                 data = jumpts)

 #Fit LnGM with ngvb
 LnGM <- ngvb(fit = LGM, selection = list(x=1:100))

 #Available methods
 summary(LnGM)
 print(LnGM)
 plot(LnGM)
 fitted(LnGM)
 samples <- simulate(LnGM)
 }