Skip to content
Prev 42409 / 398506 Next

r: lm question

On Mon, 5 Jan 2004, allan clark wrote:

            
?formula:

"The '-' operator removes the specified terms, so that '(a+b+c)^2 - a:b'
is identical to 'a + b + c + b:c + a:c'.  It can also used to remove the
intercept term: 'y~x - 1' is a line through the origin.  A model with no
intercept can be also specified as 'y~x + 0' or '0 + y~x'."

Roger