Skip to content
Prev 5611 / 63421 Next

formulas in variables in modeling functions

On Fri, 1 Jun 2001 Setzer.Woodrow@epamail.epa.gov wrote:

            
It would.  Think about how update() works.

What's wrong with

lm(weight ~ group)

or if you need it

eval(substitute(lm(model), model=model))

?  There is a difference between capturing the formula or using a
reference to a formula.