treatmentEffect {endoSwitch}R Documentation

Endogenous switching regression

Description

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

Usage

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.


[Package endoSwitch version 1.0.0 Index]