Error in glm.fit when using a tweedie distribution with log link

345 Views Asked by At

When running glm in R using tweedie and log link, I run into

"Error in glm.fit ... NA/NAN/INF in x"

I have tried using different distributions and links. I have also tried adding 1 to the response because it is insurance data with lots of 0s.

I have already checked for na's, nan's, and inf values and have none in my dataset (or have already corrected for them).

Here is the code I have:

fit = glm(y~x, data=data1,
             family=tweedie(var.power=1.6, link.power=0), weights=weights)
0

There are 0 best solutions below