bivariate_months
eap_pl.bivariate_months(
panel,
control,
variable,
*,
nyse,
dependent,
quantile_method='linear',
)
Form monthly quintile portfolios on a control and a target.
Parameters
| panel |
polars.DataFrame |
Stock-month data containing month, next-month excess and market in percentage points, cap, the sort variables, and exchcd for NYSE breakpoints. |
required |
| control |
str |
Characteristic used to form the control groups. |
required |
| variable |
str |
Target characteristic. |
required |
| nyse |
bool |
Compute cutoffs from NYSE stocks when true and all stocks in the sample otherwise. |
required |
| dependent |
bool |
Set target cutoffs within each control quintile when true and within the entire monthly sample otherwise. |
required |
| quantile_method |
str |
Breakpoint estimator passed to assign_portfolio() for both sorts. |
'linear' |
Returns
|
polars.DataFrame |
One row per month and occupied control-target cell, with equal-weighted (EW) and value-weighted (VW) returns and the market excess return (market). |