If you really want to fit a horizontal line then the best estimate
(meaning least squares) for b is mean(y), regardless of the actual x
values, which becomes clear if you look at your design matrix /
regressor matrix .
In general least squares regression could be done with lsfit(). In your
b = mean(y)
On 08/12/06, Kåre Edvardsen [EMAIL PROTECTED] wrote:
Dear R-helpers,
I'm for sure not familiar with R, but it seem like a nice sofware tool,
so I've decided to try using it.
Here is my problem I just can't figure out:
I'd like to do least square fit of a straight horizontal (a
On Dec 8, 2006, at 7:42 AM, David Barron wrote:
b = mean(y)
On 08/12/06, Kåre Edvardsen [EMAIL PROTECTED] wrote:
Dear R-helpers,
I'm for sure not familiar with R, but it seem like a nice sofware
tool,
so I've decided to try using it.
Here is my problem I just can't figure out:
I'd