This function generates the linear constraints to ensure that certain MTR coefficients are constant across the treatment and control group.
lpSetupEqualCoef(equal.coef0, equal.coef1, ANames)
character, name of terms in m0
that
should have common coefficients with the corresponding terms in
m1
.
character, name of terms in m1
that
should have common coefficients with the corresponding terms in
m0
.
character, name of all terms in m0
and
m1
. The names of the terms corresponding to the
treatment and control groups should be distinguishable. For
example, all terms for m0
may contain a prefix '[m0]',
and all terms for m1
may contain a prefix '[m1]'. All
the terms in equal.coef0
and equal.coef1
should
be contained in ANames
.
A list, containing the matrix of linear equality constraints, a vector of equal signs, and a vector of 0s.