Skip to content
Prev 150913 / 398498 Next

Questions on weighted least squares

I have figured out the problem. Thanks.

Sincerely,
Yanwei Zhang
Department of Actuarial Research and Modeling
Munich Re America
Tel: 609-275-2176
Email: yzhang at munichreamerica.com

-----Original Message-----
From: Zhang Yanwei - Princeton-MRAm
Sent: Wednesday, July 23, 2008 3:32 PM
To: Zhang Yanwei - Princeton-MRAm
Cc: r-help at r-project.org
Subject: RE: [R] Questions on weighted least squares


Sorry if I did not state clearly.
Put it another way. If the variance of the observation is proportional to the predictor, that is, var(y_i)=x_i*sigma^2, what should be specified in the "weights" argument in the lm function?
fit=lm(y~x,weights=???)


Sincerely,
Yanwei Zhang
Department of Actuarial Research and Modeling Munich Re America
Tel: 609-275-2176
Email: yzhang at munichreamerica.com

-----Original Message-----
From: markleeds at verizon.net [mailto:markleeds at verizon.net]
Sent: Wednesday, July 23, 2008 3:00 PM
To: Zhang Yanwei - Princeton-MRAm
Subject: RE: [R] Questions on weighted least squares

  i'm not sure about your whole question but you shouldn't be normalizing the predictor. that i know. the predictors are considered "fixed"
so there's no reason to normalize them, ever.
On Wed, Jul 23, 2008 at 2:49 PM, Zhang Yanwei - Princeton-MRAm wrote: