Announcement

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

  • Adding multiple labels to regsave

    I am saving coefficients using regsave (from ssc) and I am able to use the 'addlabel' option to add one new variable for said model, but is it possible to add multiple labels in one call? I tried this, using two 'addlabel' sequentially:

    Code:
    reg y x1 x2
    regsave using "C:\Myfiles\results.dta", addlabel(model, 1) addlabel (type, A) ci replace
    But that is not allowed.

  • #2
    The output of
    Code:
    help regsave
    shows us that the syntax for the addlabel option is
    Code:
    addlabel(newvarname1, label1, newvarname2, label2, ...)
    which suggests that the single option
    Code:
    addlabel(model, 1, type, A)
    will do what you need,

    Comment

    Working...
    X