search for: fitbyid

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

Did you mean: fitbin
2005 Apr 08
1
subset arg lmList
I'm having trouble understanding how functions in the subset argument for lmList search for the objects they need. This trivial example produces "Error in rownames(fakedf) : Object "fakedf" not found": library(nlme) fitbyID <- function() { fakedf <- data.frame(ID = gl(5, 10, 50), A = sample(1:100, 50), B = rnorm(50)) mycoefs <- lmList(B ~ A | ID, data = fakedf, subset = !is.element(rownames(fakedf),...