format_fit

eap_pl.format_fit(fit, term, *, digits=2)

Format a coefficient and its t statistic for a book table.

Parameters

Name Type Description Default
fit statspai.EconometricResults Fit exposing params and tvalues by term. required
term str Coefficient name in the fit. required
digits int Decimal places for the coefficient. 2

Returns

Name Type Description
str Coefficient and parenthesized t statistic separated by an HTML line break. The t statistic uses two decimal places.