Skip to content
Prev 15741 / 20628 Next

nAGQ = 0

To further clear things up for other readers, this formula syntax is a nice
and very useful (if little known) trick for estimating separate intercepts
and x slopes for each level of Trt. It creates a design matrix like:

[1 0 x_1 0]
[1 0 x_2 0]
[0 1 0 x_3]
[0 1 0 x_4]

where the first two rows belong to Trt=1, the second two rows belong to
Trt=2; columns 1 and 2 are the Trt1 and Trt2 intercepts, respectively; and
columns 3 and 4 contain only the x values for Trt1 and Trt2, respectively,
so their associated coefficients give the group-specific slopes for each
level of Trt.

Jake
On Thu, Sep 7, 2017 at 2:41 PM, Phillip Alday <phillip.alday at mpi.nl> wrote: