RE: [R] confint.glm in a function

From: Liaw, Andy <andy_liaw_at_merck.com>
Date: Tue 13 Jul 2004 - 22:56:21 EST


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@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
>
>



R-help@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 Received on Tue Jul 13 23:04:18 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:54:54 EST