CSAD-Modell in Rstudio

Hello everyone,
As part of my bachelor thesis, I am trying to prove herd behavior on the basis of the German stock market. I am using stocks from the DAX. I have already succeeded in achieving results with this regression equation.


However, I would also like to prove whether the investor tends towards herd behavior in a rising and falling market. This adapted regression formula is available for this purpose:

However, I lack the certain knowledge how to apply this equation in rStudio and if it works at all in rStudio. I would be very grateful for any help.

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.