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
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
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
Any help appreciated.
Best regards,
John

Comment