Hello everybody, I am new here and I am learning stata so I apologize in advange for the very trivial question.
I need to run 10000 loop to simulate a value, ho am i supposed to store the value obtained in each loop?
example:
set obs 50
gen RVuniforme = runiform()
gen myvalue=.
summarize RVuniforme
scalar myvalue = r(mean)
How am I supposed now to store only one value of the variable myvalue and start over the process again and again until I reach the 10000th simulation?
Thank you
I need to run 10000 loop to simulate a value, ho am i supposed to store the value obtained in each loop?
example:
set obs 50
gen RVuniforme = runiform()
gen myvalue=.
summarize RVuniforme
scalar myvalue = r(mean)
How am I supposed now to store only one value of the variable myvalue and start over the process again and again until I reach the 10000th simulation?
Thank you
Comment