Re: [R] Y-intercept Value

2007-08-06 Thread Prof Brian Ripley
?offset : you can specify a different intercept for each case, or a common one. Or you could just use lm (y - 3 ~ 0 +x), but offset() works better for prediction. On Mon, 6 Aug 2007, Benjamin Zuckerberg wrote: > > Hello everyone, > > Quick question...is there a way of specifying a y-intercept

Re: [R] Y-intercept Value

2007-08-06 Thread Berwin A Turlach
G'day Benjamin, On Mon, 6 Aug 2007 22:49:04 -0400 Benjamin Zuckerberg <[EMAIL PROTECTED]> wrote: > Quick question...is there a way of specifying a y-intercept value > within a lm statement. For example, if I wanted to specify the > regression to pass through the origin I would enter lm(y~0+

[R] Y-intercept Value

2007-08-06 Thread Benjamin Zuckerberg
Hello everyone, Quick question...is there a way of specifying a y-intercept value within a lm statement. For example, if I wanted to specify the regression to pass through the origin I would enter lm(y~0+x). But can I specify an actual term such as 1,2,3,4, etc. as an intercept value?