treatmentEffect: Endogenous switching regression

Description Usage Arguments Value

View source: R/treatmentEffect.R

Description

This function calculates average treatment effects and heterogeneity effects from an estimated endogenous switching regression model.

Usage

1
2
3
4
5
6
7
8
9
treatmentEffect(
  Results,
  data,
  OutcomeDep,
  SelectDep,
  OutcomeCov,
  SelectCov,
  treatEffect
)

Arguments

Results

Estimated endogenous switching regression model.

data

a data frame. Data for running the regression analysis.

OutcomeDep

character. Dependent variable in the outcome equation.

SelectDep

character. Dependent variable in the Selection model. The variable must be binary (0 or 1).

OutcomeCov

character vector. Covariates in the outcome equation.

SelectCov

character vector. Covariates in the selection equation.

treatEffect

TRUE/FALSE. Show average treatment effects or expected outcome values.

Value

A data table that reports the average treatment effects or a list of two tables reporting expected outcome values.


endoSwitch documentation built on March 26, 2020, 9:38 p.m.