Can someone help me convert this mathematical formula of the January effect into R code?

I am currently doing an analysis of historical stock data prices and would like to apply this formula to my research. How do I write this formula as code in R?

Thank you very much

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.