RegParallel icon indicating copy to clipboard operation
RegParallel copied to clipboard

Error while executing a negative binomial model

Open bhara033 opened this issue 2 years ago • 0 comments

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

bhara033 avatar Aug 07 '23 22:08 bhara033