RE: [R] confint.glm in a function

2004-07-13 Thread Liaw, Andy
You actually don't need to load the package first: > MASS:::confint.glm function (object, parm, level = 0.95, trace = FALSE, ...) { pnames <- names(coef(object)) if (missing(parm)) parm <- seq(along = pnames) else if (is.character(parm)) parm <- match(parm, pnames, n

Re: [R] confint.glm in a function

2004-07-13 Thread Henric Nilsson
At 19:02 2004-07-12 -0700, you wrote: If I had "confint.glm", I could modify it so it could find data. and size. However, its hidden. Try library(MASS) MASS:::confint.glm or navigate to /.../library/MASS/R and open the MASS file in your favourite editor. HTH, Henric

[R] confint.glm in a function

2004-07-12 Thread Spencer Graves
I can't get confint.glm to work from within a function. Consider the following (using R 1.9.1, Windows 2000): # FIRST: SOMETHING THAT WORKS FROM A COMMAND PROMPT DF <- data.frame(y=.1, N=100) (fit <- glm(y~1, family=binomial, data=DF, weights=DF[,"N"])) Call: glm(formula = y ~