I am new in working with R, so you might correct me but I was not able to get it working by grouping for stocks. Maybe @The Data Hall can demonstrate how to use rolling regression on more then 1 company with multiple Facots like HML, SMB and Mkt-Rf on a month base.
If you group_by the stock, would that prevent you from needing to run it in a loop? Or would these not recognize the grouping?
I am new in working with R, so you might correct me but I was not able to get it working by grouping for stocks. Maybe @The Data Hall can demonstrate how to use rolling regression on more then 1 company with multiple Facots like HML, SMB and Mkt-Rf on a month base.
@frankmeier7595 you can email me your data and code i will look into it
can you share the complete code?
Thanks for identifying. I have added it in the description.