Announcement

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

  • Saving matrices of results

    Hello all,
    I wonder if someone could help me.
    I'm using this code to save the results from quantile regressions.
    The strange thing is that I've done this already many times and had no problem. It must be something very simple. I've recently started using Stata 17.



    Code:
    forvalues e =  10(10)90 {
            est restore rifQ`e'
            qui est replay rifQ`e'
            matrix m=r(table)
            matrix bq=nullmat(bq)\m["b",...]
           
     
    }
    
    #I get the error
    
    "invalid syntax"
    or 
    "conformability error"
    What I am doing wrong? Thank you so much!!



  • #2
    You just need a single dot, not three to denote the whole row:

    Code:
    matrix bq=nullmat(bq)\m["b",.]

    Comment


    • #3
      Originally posted by Hemanshu Kumar View Post
      You just need a single dot, not three to denote the whole row:

      Code:
      matrix bq=nullmat(bq)\m["b",.]
      Thank you!!

      Comment

      Working...
      X