Displaying 1 result from an estimated 1 matches for "envpois".
Did you mean:
envois
2002 Jul 02
0
error in plot residuals in a glm with iterations.
....001 `**' 0.01 `*' 0.05 `.' 0.1 ` ' 1
I try to make a residuals plot with plot(moths.m6), the follow Warning occur:
> plot(moths.m6)
Warning message:
NaNs produced in: sqrt(1 - hii)
But the plots are produced.
Then I try to plot a envelope function and its dont work.
> envpois(moths.m6)
Error in solve.default(t(X) %*% W %*% X) :
singular matrix `a' in solve
Without iterations this work well.
What is the problem???
Thanks for all.
The envelope function is:
envpois <- function(fit.model) {
#par(mfrow=c(1,1))
X <- model.matrix(fit.model)
n <- nrow(X)
p &...