Announcement

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

  • How to use loop to rewrite this code?

    Code:
    #delimit ;
    matrix rownames table1 = "Panel A. Contributions from all contributors:Addition"
                             "Panel A. Contributions from all contributors:Deletion"
                             "Panel A. Contributions from all contributors:Total" ;
    I want to save the line, so I use the loop. But I noticed that this is in fact within one code. Any idea?
    Last edited by Yao Zhao; 12 Mar 2020, 10:14.

  • #2
    Code:
    local name "Panel A. Contributions from all contributors:"
    matrix rownames table1 = "`name'Addition" "`name'Deletion" "`name'Total"

    Comment


    • #3
      You always help me a lot. Thank you.

      Comment

      Working...
      X