DEV Community


Posted on

creating a loop for Rolling regression model and restore the results of the Coefficients (Python)


I have sample of 2683 Mutual Funds and Fama & French factors. I want to run time-series regression on a rolling window basis for each fund separately and restore the coefficients in a dataframe and write it to csv. I have tried to use for loop in the following code,but…

Discussion (0)