Skip to content
Prev 325815 / 398503 Next

environment of lm

By the way, you could use
   lm(x ~ y + z, data=someData, weights=weight)
instead of
   lm(x ~ y + z, data=someData, weights=someData$weight)
as 'weight' will be looked for in someData before any environment.

(You still don't want to get into the habit of passing formula strings to lm.)

Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com