Skip to content
Prev 70651 / 398503 Next

Incompatibility with VGAM

On Mon, 30 May 2005, Thomas Yee wrote:

            
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