Description Usage Arguments Value
View source: R/treatmentEffect.R
This function calculates average treatment effects and heterogeneity effects from an estimated endogenous switching regression model.
1 2 3 4 5 6 7 8 9 | treatmentEffect(
Results,
data,
OutcomeDep,
SelectDep,
OutcomeCov,
SelectCov,
treatEffect
)
|
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. |
A data table that reports the average treatment effects or a list of two tables reporting expected outcome values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.