Hi,
I have an MC simulation which randomly generates a set of variables at each replication for use in estimation and post estimation I then use the output to generate more variables. I know how to save scalars generated by the simulation but I'd also like to save a dataset of all the values of variables generated at each replication. So a simulation of 1000 observations and 1000 replications should ideally give me a dataset that has 1,000,000 observations (1000 observations per replication). I tried to look for a counter to represent the replication number but as far as I know, it doesn't exist (at least in the ado file for simulate). Any help on this would be much appreciated!
Thanks!
-Jessica
I have an MC simulation which randomly generates a set of variables at each replication for use in estimation and post estimation I then use the output to generate more variables. I know how to save scalars generated by the simulation but I'd also like to save a dataset of all the values of variables generated at each replication. So a simulation of 1000 observations and 1000 replications should ideally give me a dataset that has 1,000,000 observations (1000 observations per replication). I tried to look for a counter to represent the replication number but as far as I know, it doesn't exist (at least in the ado file for simulate). Any help on this would be much appreciated!
Thanks!
-Jessica
Comment