Re: [Rd] Evaluation puzzle

From: Terry Therneau <>
Date: Thu, 11 Nov 2010 17:08:51 -0600

  The answer came from Gabor -- the model.frame function has a non-standard evaluation, in that it uses the enviromnent attached to the formula as the "enclosure" for looking up variable names.   This is clearly documented and I somehow missed it when reading the page. So "reading deficit" is the true root of my query. I scratched my head for a couple of hours before sending for help.

   Also a typo in my stripped down example -- I forgot the as.formula() wrapper which is in the actual survexp function. This added a red herring to the discussion.

Terry T. mailing list Received on Thu 11 Nov 2010 - 23:13:36 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 12 Nov 2010 - 00:30:19 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive