heter_IV2(Z, A, M, Y, X, polydegree = 2, step1 = NULL, truncate = 0.25, select = NULL)
A vector of the randomization variable.
A vector of the first mediator: whether a patient receives antidepressant medication.
A vector of the second mediator: whether a patient receives mental health therapy.
A vector of the outcome of interest.
A matrix of all the covariates.
The order of the polynomial function.
The result of the first step estimation from homo_IV1.
Truncate the estimated Omega using a positive constant.
Using AIC or BIC for variable selection in the polynomial regression, the default is null.
For background of the problem, see Ding et al. (2011).