Skip to content
Prev 360121 / 398503 Next

simple interactions

Try using
   ~ group/age
or even
   ~ 0 + group/age

Both have all three group-specific slopes but differ with respect to the 
intercept codings. The latter has three group-specific intercepts as well. 
But the former has an intercept corresponding to the reference group A and 
then the usual treatment contrasts for group B and C (i.e., intercept 
differences).

IIRC then I found the discussion of these contrasts and nested codings in 
the MASS book very useful.
On Fri, 15 Apr 2016, Therneau, Terry M., Ph.D. wrote: