search for: frameby

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

Did you mean: frame_y
2006 Sep 22
3
extract data from lm object and then use again?
...write a general function so that it would take an lm object, extract its data element, then use the data at another R function (eg, glm). I searched R-help list, and found this would do the trick of the first part: a.lm$call$data this would return a name object but could not be recognized as a data.frameby glm. I also tried call(as.character(a.lm$call$data)) or eval(call(as.character(a.lm$call$data))) neither works. By eval(call(...)), it acts as evaluating of a function, but what I want is just a data frame object which could be inserted into glm function. Anyone could help? Thanks, Mike [[alter...