Displaying 1 result from an estimated 1 matches for "rnomr".
Did you mean:
rnome
2010 Aug 01
1
Modifying glm.fit() / execution path
...lm.fit() function and then get R to use it (sort of). I'm doing
something along the lines of:
glm.fit<-edit(glm.fit) # add something trivial to the top of the glm.fit
function like: print("Hello world!")
#now have a modified glm.fit in position 1/.GlobalEnv
x<-rnorm(20)
y<-rnomr(20)
glm(y~x) # I don't get the trivial bit of glm.fit back (i.e. "Hello world!"
doesn't print)
#but
glm(y~x,method=glm.fit) # works! I get "Hello world!"
My understanding is that glm() should call glm.fit() by default but it seems
to be calling the glm.fit() in &quo...