search for: model_n_warnings

Displaying 1 result from an estimated 1 matches for "model_n_warnings".

2012 Feb 03
1
GAM (mgcv) warning: matrix not positive definite
...le use of the gam function. ##################################################### Here is 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&quot...