Reputation: 1
I am trying to run a random effects generalized linear model specifying the family as binomial and a log link to estimate risk ratio (RR) and 95% confidence intervals (CIs). When I run it, I keep getting the error: Error: PIRLS loop resulted in NaN value
This is my code:
model <- glmer(outcome ~ predictor + (1|random effect variable), data = df, family = binomial(link = "log"))
summary(model, corr = FALSE)
How should I correct my code? Also, would it be possible to get the risk ratio by exponentiating the coefficient?
Upvotes: 0
Views: 475