regtools.lag package¶
Submodules¶
regtools.lag.create module¶
regtools.lag.main module¶
regtools.lag.plot module¶
-
regtools.lag.plot.
interacted_lag_plot_from_lag_result_df
(result_df, yvar, main_iv, date_var='Year', outpath=None, clear_figure=True)[source]¶ Creates a plot of effect of main_iv on yvar at different quantiles. To be used after reg_for_each_quantile_produce_result_df
- Parameters
result_df¶ – pd.DataFrame, result from reg_for_each_quantile_produce_result_df
yvar¶ – str, label of dependent variable
main_iv¶ – str, label of independent variable of interest
outpath¶ – str, filepath to output figure. must include matplotlib supported extension such as .pdf or .png
clear_figure¶ – bool, True wipe memory of matplotlib figure after running function
- Returns
regtools.lag.remove module¶
-
class
regtools.lag.remove.
SimplifiedRegressionResult
(**kwargs)[source]¶ Bases:
regtools.lag.remove.SimplifiedBase
-
direct_attrs
= ['params', 'pvalues', 'tvalues', 'nobs', 'rsquared_adj', 'bse', 'conf_int', 'normalized_cov_params', 'cov_params_default', 'scale', 'cov_params', 't_test']¶
-
model_attrs
= ['exog_names', 'endog_names']¶
-