lpSetupEqualCoef: Generate equality constraints

Description Usage Arguments Value

View source: R/lp.R

Description

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

Usage

1
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.


ivmte documentation built on Sept. 17, 2021, 5:06 p.m.