Re: [R] About lm(y~1)

2014-04-28 Thread Rui Barradas
Hello, That will compute a "fit" with coefficient equal to mean(y) and std error equal to sd(y)/sqrt(length(y)) Hope this helps, Rui Barradas Em 28-04-2014 19:35, Alejo C.S. escreveu: Dear list, Reading a function I found this: lm ( y ~ 1 ) I know that Y ~ -1 + A is a straight-line with

[R] About lm(y~1)

2014-04-28 Thread Alejo C.S.
Dear list, Reading a function I found this: lm ( y ~ 1 ) I know that Y ~ -1 + A is a straight-line with no y-intercept; that is, a fit forced through (0,0). But I never saw the first example. Any tip? Thanks in advance! C. [[alternative HTML version deleted]]