Announcement

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

  • addlabel in regsave

    Hi there

    I was wondering if anyone knew how to add a label to each line of regsave results? The option 'addlabel' creates a new label per regression, but it would be useful if you could add a new label per result saved, such as in the following

    Code:
    use "http://www.stata-press.com/data/r13/lbw", clear
    tempfile results
    gen race_new = race
    logistic low i.race_new
    regsave 2.race_new 3.race_new using results, ci pval addlabel(description, black) autoid replace
    use results, clear
    ...where the values in the last column were 'black' and other' (instead of 'black and 'black')


    With regards

  • #2
    I should have mentioned that regsave is an ssc command

    Code:
    ssc install regsave

    Comment


    • #3
      I think you just need to generate a new variable for coefficient labels. Alternatively you could do sequential regsaves, and append them. Or someone could revise regsave so that it save coefficient labels more generally.
      Doug Hemken
      SSCC, Univ. of Wisc.-Madison

      Comment

      Working...
      X