[R] Weighting data when running regressions
Elena Wilson
wilson_family at optusnet.com.au
Tue Mar 11 00:19:42 CET 2008
It works!!!
Thanks a lot Haris!
-----Original Message-----
From: Charilaos Skiadas [mailto:cskiadas at gmail.com]
Sent: Monday, 10 March 2008 11:30 PM
To: Elena Wilson
Cc: r-help at r-project.org
Subject: Re: [R] Weighting data when running regressions
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