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
__
[EMAIL PROTECTED] 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


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, 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:utilsAutoloadspackage: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
 
 __
 [EMAIL PROTECTED] 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
 


__
[EMAIL PROTECTED] 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