RegParallel
RegParallel copied to clipboard
Error while executing a negative binomial model
Hello Kevin,
Hope you are doing well. I am trying to run a negative binomial regression using "RegParallel." I am getting the error "FUNtype not recognised. Choose one of glm, lm, coxph, clogit, or bayesglm." The package documentation lists glm.nb() as one of the supported functions. Could you please help me understand why this error is occurring? I have included my code below:
res <- RegParallel( data = data, formula = 'response ~ .', FUN = function(formula, data) glm.nb(formula = formula, data = data), FUNtype = 'glm.nb', variables = colnames(data), p.adjust = "none", blocksize = 5, cores = 2)
Thank you for your time.
Kind Regards,
Suhas