Announcement

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

  • how to cite locals in previous local?

    As shown below, the citation of "`psm1'" is wrong, how to cite the tempfile correctly?
    Code:
    cap forvalues i =1/`r(max)' {
     tempfile psm`i'
     save psm`i',replace
    }
    
    use `psm1',clear
    forvalues i = 2/`r(max)'{
     append using `psm`i''
    }
    Last edited by Fred Lee; 09 Jan 2022, 01:08.

  • #2
    Code:
    save `psm`i''

    Comment


    • #3
      Originally posted by Andrew Musau View Post
      Code:
      save `psm`i''
      I see the mistake. Thank you, Andrew!

      Comment

      Working...
      X