search for: myloglm

Displaying 1 result from an estimated 1 matches for "myloglm".

Did you mean: mylogin
2003 Oct 30
0
loglm() uses only a reference to data, and not data itsel f - is that on purpose??
...rd at agrsci.dk] Sent: Thursday, October 30, 2003 8:10 AM To: r-help at stat.math.ethz.ch Subject: [R] loglm() uses only a reference to data, and not data itself - is that on purpose?? Dear all, Consider the following: library(MASS); data(HairEyeColor) l1 <- loglm(~ 1+2+3, data=HairEyeColor) myloglm <- function(){ nd <- HairEyeColor v <- loglm(~ 1+2+3, data=nd) return(v) } l2 <- myloglm() Now, step(l1) works, whereas step(l2) does not, the problem being that data nd does not exist outside myloglm. I was under the impression that objects from functions like glm() and...