79824296

Date: 2025-11-19 10:00:12
Score: 1.5
Natty:
Report link

It was (apparently) indeed the dispersion that was wrong. The function

norm_loglik2 <- function(mod, newdata) {
  sum(dnorm(
    newdata$y,
    predict(mod, newdata, type = "response"),
    sqrt(mod$deviance / nobs(mod)),
    log = TRUE
  ))
}

yields the same likelihood as logLik .

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: David Köhler