[Rd] binomial null model (PR#1216)

kjetilh@umsanet.edu.bo kjetilh@umsanet.edu.bo
Fri, 14 Dec 2001 16:56:16 +0100 (MET)


> y <- rbinom(20,1,0.5)
> glm( y ~ 0, family=binomial)
Error in any(n > 1) : Object "n" not found
> debug(glm)
> debug(glm.fit.null)
> glm( y ~ 0, family=binomial)
debugging in: glm(y ~ 0, family = binomial)
debug: {
.
.
.
Browse[1]> n
debug: aic.model <- family$aic(y, n, mu, weights, dev)
Browse[1]> print(n)
Error in print(n) : Object "n" not found
Browse[1]> get("n", envir=environment(family$aic))
Error in get(x, envir, mode, inherits) : variable "n" was not found
Browse[1]> n
Error in any(n > 1) : Object "n" not found

The call to any(n > 1) is inside family$aic. This n apparently needs to
be calculated somewhere.

(This is R1.3.1 on windows 98)

Kjetil Halvorsen

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._