Thank you all ;)
On Wed, Jul 3, 2013 at 4:28 PM, S Ellison wrote:
> > Now I have question: what about y=b fitting? is there any model to
> > force or impose the ax to be zero
>
> Rui Barradas has answered correctly for a simple lm case.
>
> You can also do
> lm(y~1) to obtain an estimated
> Now I have question: what about y=b fitting? is there any model to
> force or impose the ax to be zero
Rui Barradas has answered correctly for a simple lm case.
You can also do
lm(y~1) to obtain an estimated mean.
That formulation happens to be quite useful if you are interested in a pu
Hello,
Try ?mean
abline(h = mean(y), col = "blue")
Hope this helps,
Rui Barradas
Em 03-07-2013 15:07, Birdada Simret escreveu:
Greetings to every body.
we know that for linear regression: two-parameter fitting in R: (for a and
b as slope and intercept)
[a] for y=ax+b type models we use:
Greetings to every body.
we know that for linear regression: two-parameter fitting in R: (for a and
b as slope and intercept)
[a] for y=ax+b type models we use: lm(y~x)
[b] for y=axtype models we use: lm(y~0+x) => forced to pass through
origin
Now I have question: what about y=b fitting
4 matches
Mail list logo