Skip to content

glm and lm can't find weights

3 messages · Marc Schwartz, Dimitri Liakhovitski

#
On Mar 11, 2013, at 1:46 PM, Dimitri Liakhovitski <dimitri.liakhovitski at gmail.com> wrote:

            
Many discussions on this over the years, along with the 'subset' argument. From the Details section of ?lm:

  All of weights, subset and offset are evaluated in the same way as variables in formula, 
  that is first in data and then in the environment of formula.

You might also review:

  http://developer.r-project.org/nonstandard-eval.pdf

This post by Thomas from 2006 may be helpful:

  http://tolstoy.newcastle.edu.au/R/devel/06/06/5869.html

and the reply from Peter also:

  http://tolstoy.newcastle.edu.au/R/devel/06/06/5868.html

Regards,

Marc Schwartz
2 days later