[R] confint.glm in a function
Liaw, Andy
andy_liaw at merck.com
Tue Jul 13 14:56:21 CEST 2004
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, nomatch = 0)
cat("Waiting for profiling to be done...\n")
object <- profile(object, which = parm, alpha = (1 - level)/4,
trace = trace)
confint(object, parm = parm, level = level, trace = trace,
...)
}
<environment: namespace:MASS>
> search()
[1] ".GlobalEnv" "package:methods" "package:stats"
"package:graphics"
[5] "package:utils" "Autoloads" "package:base"
Andy
> From: 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-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
>
More information about the R-help
mailing list