I need help to debug my Zeroinfl GLM that causes an error indicating ‘NA’ and “exactly singular systems”
I am having a problem with my code. I am trying to create a GLM model with Zeroinfl since my data set has many 0’s in it. I am trying to study the influence of pond characteristics on pond amphibian diversity but I get an error code that leads to “NA”‘s in my summary table.
how can I quickly run multiple glm for different categories within my data?
i have a df that contains data for the nation and would like to see if the relationship between variables is different at smaller geographies (region, state).
i have tried using the subset argument of glm but this would be very repetitive as i have many regions and many dependent variables.
Recovering `init.theta` from `glm.nb()`
glm.nb()
automatically calculates an init.theta
when it is not user specified.
How to solve Variable lengths differ error in R
model <- lm(y ~ ., data = A)
Error in model.frame.default(formula = y ~ ., data = A, drop.unused.levels = TRUE) :
variable lengths differ (found for ‘BAP’)