Displaying 1 result from an estimated 1 matches for "outmodel".
Did you mean:
outmoded
2012 Feb 03
1
GAM (mgcv) warning: matrix not positive definite
...some further description:
## Simple use of gam
gam(USE ~ X1 + s(X2) + s(X3), family = binomial, data = data,
method="REML") # print no warning message.
## Using a function that capture warnings
Model_n_Warnings <- function(expr) {
localWarnings <- list()
outModel <- withCallingHandlers(expr,
warning = function(w) {
localWarnings[[length(localWarnings)+1]] <<- w$message # store
warning message
invokeRestart("muffleWarning") # avoid printing warning message
to console
})
list(outM...