[R] weighted x variables with glm

Michael Bedward michael.bedward at gmail.com
Mon Nov 29 03:55:08 CET 2010


>> In case you haven't see it, the glm function accepts an optional
>> weights argument.
>>
>
> Thanks for the reply. But the philosopy behind weighting is the assumption
> of unequal variance in the y values. In normal regression one assumes that
> the x values are known without error
>
> Wendy

Sorry Wendy - I posted my reply prior to engaging my brain (ie. didn't
read your question properly).

You're talking about Model II / major axis type methods. The smatr
package might cater for what you're trying to do.

Hope this helps (more).

Michael



More information about the R-help mailing list