Skip to content

Random slopes without random intercepts

3 messages · Nick Isaac, Nathaniel Smith, Ken Beath

#
On Thu, Jan 17, 2008 at 11:11:31AM +0000, Nick Isaac wrote:
You want (x-1|A), or (x+0|A) -- the two are identical to each other.

(The trick is that in R, formulas are generally assumed to contain an
intercept term by default.  The intercept term is named "1", so if you
write y ~ x, it's assumed you mean y ~ 1 + x.  You can override this
by explicitly subtracting the 1 off again, or by explicitly putting in
a 0, either way.  The same applies to the specification of random
effect terms.)

-- Nathaniel
#
On 17/01/2008, at 10:25 PM, Nathaniel Smith wrote:

            
It is very unusual to find data requiring a random slope but no random  
intercept, as it requires that all lines pass through the same point  
on the y axis.

Ken