This function performs TSLS to obtain the estimates for the IV-like estimands.
piv(Y, X, Z, lmcomponents = NULL, weights = NULL, order = NULL,
excluded = TRUE)
the vector of outcomes.
the matrix of covariates (includes endogenous and exogenous covariates).
the matrix of instruments (includes exogenous covariates in the second stage).
vector of variable names from the second stage
that we want to include in the S-set of IV-like estimands. If
NULL
is submitted, then all components will be included.
vector of weights.
integer, the counter for which IV-like specification and component the regression is for.
boolean, to indicate whether or not the regression involves excluded variables.
vector of select coefficient estimates.