Dear Hamed,
> -Original Message-
> From: Hamed Ha [mailto:hamedhas...@gmail.com]
> Sent: Monday, September 17, 2018 3:56 AM
> To: Fox, John
> Cc: r-help@r-project.org
> Subject: Re: [R] Problem with lm.resid() when weights are provided
>
> H i John,
>
&g
you can't expect numerically stable results. I suppose that
> lm.wfit() could check for 0 weights to a tolerance rather than exactly.
>
> John
>
> > -Original Message-
> > From: Hamed Ha [mailto:hamedhas...@gmail.com]
> > Sent: Friday, September 14, 2018
34 PM
> To: Fox, John
> Subject: Re: [R] Problem with lm.resid() when weights are provided
>
> Hi John,
>
> Thank you for your reply.
>
> I agree that the small weights are the potential source of the instability in
> the
> result. I also suspected that there are some
ay, September 11, 2018 8:39 AM
> To: r-help@r-project.org
> Subject: [R] Problem with lm.resid() when weights are provided
>
> Dear R Help Team.
>
> I get some weird results when I use the lm function with weight. The issue can
> be reproduced by the example below:
>
>
Dear R Help Team.
I get some weird results when I use the lm function with weight. The issue
can be reproduced by the example below:
The input data is (weights are intentionally designed to reflect some
structures in the data)
> df
y x weight
1.51156139 0.55209240 2.117337e-34
-0.63653132
5 matches
Mail list logo