univariate_panel
eap_pl.univariate_panel(
panel,
variable,
nyse,
characteristics,
*,
weight='cap',
quantile_method='linear',
)Summarize monthly characteristic deciles and the high-minus-low spread.
The sample must populate all ten deciles for the table.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| panel | polars.DataFrame | Stock-month data containing month, next-month excess and market in percentage points, the sort variable and weight, and exchcd for NYSE breakpoints. |
required |
| variable | str | Characteristic used for the sort. | required |
| nyse | bool | Compute cutoffs from NYSE stocks when true and all stocks in the sample otherwise. | required |
| characteristics | Iterable[polars.Expr] | Additional portfolio aggregates to average across months. | required |
| weight | str | Column containing the formation-month value weights. | 'cap' |
| quantile_method | str | Breakpoint estimator passed to assign_portfolio(). |
'linear' |
Returns
| Name | Type | Description |
|---|---|---|
| polars.DataFrame | A formatted table of characteristics, equal- and value-weighted excess returns, and CAPM alphas, with HAC t statistics for returns and alphas. |