Plots several summaries of an ngvb.list object.
plot.RdPlots 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
ngvbfunction)- y
Not used.
- ...
Extra arguments to be used in
plot(x@LGM, ...)wherex@LGMis 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)
}