Skip to content
Prev 32224 / 63424 Next

data argument and environments

On 11/04/2009 6:50 PM, roger koenker wrote:
Formulas have environments attached to them, and modelling functions 
should look there if they don't find the object in the data argument. 
If your h is defined exactly as you wrote it, then the environment of 
the y ~ qss(...) formula will automatically be the evaluation frame of 
h, so it should be able to find lam.

You wrote rqss, right?  So perhaps you aren't evaluating the variables 
in the formula in the right place.  Do you use model.frame to do it? 
(See lm() for an example:  it takes the original call to lm, throws away 
all but a few arguments, and turns it into a call to model.frame() to 
find the necessary variables.)  model.frame() knows about environments 
and stuff, but assumes linear model-like data.

Duncan Murdoch