Displaying 1 result from an estimated 1 matches for "lsdata".
Did you mean:
lsidata
2004 Oct 11
0
scoping problem when calling step inside a function
...problems (first example in code below). I can also do a
backward stepwise regression inside a function (second example), but
forward stepwise regression ( third example ) fails with the error:
"Error in model.frame.default(formula = y ~ X1 + X2 + X3 + X4 + X5 + X6 + :
Object "lsdata" not found"
I looked through the help archives and found several threads where the
problem appears to be the environment which is used in eval. When I
looked at the source for step, it appears OK, as it's using
eval.parent. I also read section 7.12 of the FAQ about enclosing and
pa...