rzonden: zondag 22 januari 2012 15:06
Aan: r-help@r-project.org
Onderwerp: [R] Calling update on an lm-object inside a function
Dear all,
I want to update an lm (or glm) object by changing the response variable and I
want to do so inside a function. Doing the update outside of a function is
straig
Dear all,
I want to update an lm (or glm) object by changing the response variable and I
want to do so inside a function. Doing the update outside
of a function is straight forward:
x <- 1:5
y <- c(1,2,3,3,6)
mm <- lm(y~x)
y2 <- c(1,3,3,4,6)
mm2<- update(mm, y2 ~ .)
But I want to make th
2 matches
Mail list logo