Announcement

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

  • Save simulated variable

    Hello,

    I would like to know how a simulated variable can be saved, so that next time I run the simulation I can generate a new variable. For example: if I run my simulation using

    Code:
    simulate mean=_b[x], reps(10): program
    then I get a new variable "mean" that consists of the beta coefficients. But next time I run the program, and even if I change the name to"mean1", stata will just overwrite the variable that was created in the first go. So when I look in my data editor I will never have more than one variable, the last one that was generated.

    Any help appreciated.

    Best regards,
    John


  • #2
    What are you trying to do? What is "program"? Why do you think you need to run it multiple times? Why do you think the different runs should appear on the same row?
    ---------------------------------
    Maarten L. Buis
    University of Konstanz
    Department of history and sociology
    box 40
    78457 Konstanz
    Germany
    http://www.maartenbuis.nl
    ---------------------------------

    Comment

    Working...
    X