[R] Seeing the definition of a function
Roger D. Peng
rpeng at jhsph.edu
Tue May 4 15:31:34 CEST 2004
confint is generic so it does nothing but dispatch appropriate
methods. If you do methods(confint), you'll see
> methods(confint)
[1] confint.lm*
Non-visible functions are asterisked
Typing confint.lm will give you an error because the function is not
exported by the stats package namespace. But doing
getAnywhere(confint.lm) should do what you want.
-roger
Søren Højsgaard wrote:
> Dear all,
> I was trying to see how the function 'confint' is defined. Doing
>
>
>>confint
>
> function (object, parm, level = 0.95, ...)
> UseMethod("confint")
> <environment: namespace:stats>
>
> does not really enlighten me. How can I get to see the implementation (I guess it should be possible according to the general philosophy of the R project)?
>
> Thanks in advance
> Søren
>
> =============================================================================================
> Søren Højsgaard, PhD, Head of Research Unit Phone: +45 8999 1703
> Biometry Research Unit, Fax: +45 8999 1300
> Danish Institute of Agricultural Sciences E-mail: sorenh at agrsci.dk
> Research Centre Foulum, DK-8830 Tjele, Denmark Homepage : http://www.jbs.agrsci.dk/~sorenh/
>
> ______________________________________________
> 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