Re: [R] Incompatibility with VGAM

From: Thomas Lumley <tlumley_at_u.washington.edu>
Date: Tue 31 May 2005 - 01:45:29 EST

On Mon, 30 May 2005, Thomas Yee wrote:

> Hello,
>
>
> It seems that if glm used a namespace then the conflict would be avoided?
>

No. glm does use a namespace, so this can't be true. Remember that R passes arguments by value, and consider

   glm(y~x, family=poisson())

The namespace ensures that functions called from glm are looked up in the stats namespace, but family() not called from glm(). It is called by the user and the result is passed as an argument to glm().

The exception is when no family argument is supplied. In that case the default argument is created by a call to family() from inside glm(), which should always find stats::family

         -thomas



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue May 31 01:51:04 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:16 EST