Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Enter complicated math formula in Stata

    Hello.
    I am trying to generate a variable that is calculated by using a complicated math expression.
    More specially, the expression is the following:

    Click image for larger version

Name:	1.png
Views:	1
Size:	6.5 KB
ID:	1517821


    My difficulty is, I do not know how to generate this complicated product and summation function within one time-series variable.
    Can anyone help me out?

  • #2
    For rolling window products, you can try asrol, which can be downloaded from ssc.
    Code:
    ssc install asrol
    help asrol
    Regards
    --------------------------------------------------
    Attaullah Shah, PhD.
    Professor of Finance, Institute of Management Sciences Peshawar, Pakistan
    FinTechProfessor.com
    https://asdocx.com
    Check out my asdoc program, which sends outputs to MS Word.
    For more flexibility, consider using asdocx which can send Stata outputs to MS Word, Excel, LaTeX, or HTML.

    Comment

    Working...
    X