totReg: Creates an treatment on the treated model with the ivreg...

Description Usage Arguments Value Author(s)

View source: R/totReg.R

Description

Creates an treatment on the treated model with the ivreg function from the AER package.

Usage

1
2
totReg(y = outcome, iv = instrument, tr = treatment, x = covariates,
  data = df, ...)

Arguments

y

Character vector of length = 1 that is the column name of the outcome variable.

iv

Character vector of length = 1 that is the column name of the insrumental variable (e.g. treatment assignment).

tr

Character vector of length = 1 that is the column name of the treatment received variable.

x

Character vector of any length that contains the column names of the covariates.

data

The data frame containing the variables referenced by the previous arguments.

Value

An object of class 'ivreg' containing elements of model objects similar to the lm() function.

Author(s)

William Murrah


wmmurrah/cpar documentation built on May 4, 2019, 9:45 a.m.