Skip to content
Prev 43958 / 398525 Next

how to use try()

"r.ghezzo" <heberto.ghezzo at mcgill.ca> writes:
Just check the return value from try:

beta[i] <- if(inherits(try(.....),"try-error")) NA else lo$etc...

(or use sapply) and, er, shouldn't there be a dependency on i
somewhere in the model fit???