I'm trying to replicate code from Stata that estimates a linear regression model.
The problem is that there are 2 fixed effects variables (Domaine d’étude E.F. Université E.F.).
The linear regression with fixed effects and control variables
Here is what I have for the moment :
import statsmodels.formula.api as smf
results = smf.ols('discriminant ~ diff_eval_formfr + presse + trav_sup + recrut_seul + proced_auditions + taux_insertion_30mois + taux_stable_30 + taux_plei_30 + sal_med', data=da).fit()
I don't know how to add the fixed effects or even if it is possible.
Any advice will be appreciated.