I\'m running several hundred datasets through glm.nb
using a wrapper function. Nothing fancy, I just pass on each list item via llply
, then fit using <
you can also use the failwith function in plyr. if f is the function you are passing to plyr, you can instead pass the function
safef = failwith(NA, f)
of course, you can replace NA with whatever return value you need when the function fails. this code is lifted directly from the examples for failwith.