powered by
Function returning the Watanabe-Akaike Information Criterion (WAIC) of a fitted model object.
WAIC(object, ..., newdata = NULL)
A fitted model object which contains MCMC samples.
Optionally more fitted model objects.
Optionally, use new data for computing the WAIC.
# NOT RUN { d <- GAMart() b1 <- bamlss(num ~ s(x1), data = d) b2 <- bamlss(num ~ s(x1) + s(x2), data = d) WAIC(b1, b2) # }
Run the code above in your browser using DataLab