[R] Weighting data when running regressions

Charilaos Skiadas cskiadas at gmail.com
Mon Mar 10 13:29:55 CET 2008


On Mar 10, 2008, at 7:49 AM, Elena Wilson wrote:

>
> linmod=lm(Y~X1+X2+X3+X4W, subset=(X5==1 & X6==7), weights==WEIGHT)

That should likely be weights=WEIGHT, with one equal sign.

Haris Skiadas
Department of Mathematics and Computer Science
Hanover College



More information about the R-help mailing list