On Wed, 11 Nov 2009, David Winsemius wrote:
On Nov 11, 2009, at 7:45 PM, Mauricio Calvao wrote:
When I try:
fit_mod <- lm(y~x,weights=1/error^2)
I get
Warning message:
In lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) :
extra arguments weigths are just disregarded.
(Actually the weights are for adjusting for sampling, and I do not see any
sampling in your "design".)
No, the weights are not for adjusting for sampling. You will get the wrong
standard errors if you put sampling weights into the `weights` argument.
The warning is saying that he had misspelt 'weights' as 'weigths' (and so the
code he posted wasn' t the same as the code he ran).
-thomas
Thomas Lumley Assoc. Professor, Biostatistics
tlum...@u.washington.edu University of Washington, Seattle
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.