diff --git a/pyfixest/FixestMulti.py b/pyfixest/FixestMulti.py index e780692b..03a84c55 100644 --- a/pyfixest/FixestMulti.py +++ b/pyfixest/FixestMulti.py @@ -463,8 +463,8 @@ def tidy(self) -> pd.DataFrame: - Std. Error: the standard errors of the estimated coefficients - t value: the t-values of the estimated coefficients - Pr(>|t|): the p-values of the estimated coefficients - - 2.5 %: the lower bound of the 95% confidence interval - - 97.5 %: the upper bound of the 95% confidence interval + - 2.5%: the lower bound of the 95% confidence interval + - 97.5%: the upper bound of the 95% confidence interval If `type` is set to "markdown", the resulting DataFrame will be returned as a markdown-formatted string with three decimal places. """ diff --git a/pyfixest/visualize.py b/pyfixest/visualize.py index 60a64df9..f88c0974 100644 --- a/pyfixest/visualize.py +++ b/pyfixest/visualize.py @@ -246,7 +246,7 @@ def _coefplot( ggplot(df, aes(x="Coefficient", y="Estimate", color="Model")) + geom_point(position=position_dodge(0.5)) + geom_errorbar( - aes(ymin="2.5 %", ymax="97.5 %"), width=0.05, position=position_dodge(0.5) + aes(ymin="2.5%", ymax="97.5%"), width=0.05, position=position_dodge(0.5) ) + ylab("Estimate and 95% Confidence Interval") ) diff --git a/tests/test_visualize.py b/tests/test_visualize.py index 972626ed..e542e1d7 100644 --- a/tests/test_visualize.py +++ b/tests/test_visualize.py @@ -24,3 +24,7 @@ def test_visualize(): # iplot fit5 = feols("Y ~ i(f1)", data=data) iplot(fit5) + + # FixestMulti + fit6 = feols("Y + Y2 ~ X1 + X2 | f1", data=data) + fit6.coefplot()