Announcement

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

  • about time period group

    Hellow everyone,I wanna to divide stock monthly return into three groups based on the original return of 11 months dating from the end of monthly t − 2,how can I do it.

    I only did the end of monthly t-2 by use "gen portfolioday=cond((date==lastdate)&(month[_n-2]),1,0)"

    How to achieve grouping in the following time period?

    THX


  • #2
    You have accidentally posted your topic in Statalist's Mata Forum, which is used for discussions of Stata's Mata language, which is different than Stata's command language, and different than Stata's matrix commands. Your question will see a more appropriate, and much larger audience if you post it in Statalist's General Forum.

    Also, if you have not already done so, take a look at the Statalist FAQ linked to at the top of this page for posting guidelines and suggestions.

    Comment

    Working...
    X