Displaying 1 result from an estimated 1 matches for "e_p1".
Did you mean:
__p1
2009 Jan 25
1
[Fwd: Re: evaluation question]
..."
when lm is applied to a model, the variable names used to pass arguments
to lm (here, 'wghts') are looked up in the environment where the model
was defined. here, you have two environments:
- the global one (say, e_g), where x, y, and prac1 are defined;
- the call-local one (say, e_p1), created when prac1 is applied.
there is a variable name 'wghts' in the latter, but none in the
former. just before the call, environmentwise the situation is as follows:
e_g = { 'x':v1, 'y':v2, 'prac1':v3 }
where e_g contains three mappings (of those we are int...