statsmodels.treatment.treatment_effects.TreatmentEffect.from_data#
- classmethod TreatmentEffect.from_data(endog, exog, treatment, model='ols', **kwds)[source]#
Create models from data
Not yet implemented.
- Parameters:
- endog
ndarray Outcome variable for the outcome model.
- exog
ndarray Explanatory variables for the outcome model.
- treatment
ndarray Indicator array for observations with treatment (1) or without (0).
- model
str Name of the model class to use for the outcome model.
- **kwds
Additional keyword arguments passed to model classes.
- endog
- Returns:
TreatmentEffectInstance of the treatment effect class created from the data.