lpSetupEqualCoef {ivmte}R Documentation

Generate equality constraints

Description

This function generates the linear constraints to ensure that certain MTR coefficients are constant across the treatment and control group.

Usage

lpSetupEqualCoef(equal.coef0, equal.coef1, ANames)

Arguments

equal.coef0

character, name of terms in m0 that should have common coefficients with the corresponding terms in m1.

equal.coef1

character, name of terms in m1 that should have common coefficients with the corresponding terms in m0.

ANames

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.

Value

A list, containing the matrix of linear equality constraints, a vector of equal signs, and a vector of 0s.


[Package ivmte version 1.4.0 Index]