Learn R Programming

ivmte (version 1.0.1)

piv: Obtaining IV-like estimands

Description

This function performs TSLS to obtain the estimates for the IV-like estimands.

Usage

piv(Y, X, Z, lmcomponents, weights = NULL)

Arguments

Y

the vector of outcomes.

X

the matrix of covariates (includes endogenous and exogenous covariates).

Z

the matrix of instruments (includes exogenous covariates in the second stage).

lmcomponents

vector of variable names from the second stage that we want to include in the S-set of IV-like estimands.

weights

vector of weights.

Value

vector of select coefficient estimates.