Page 1 of 1

Montecarlo Simulation

Posted: Mon May 06, 2013 1:21 pm
by econometrics_up
Hello,

I'm doing a Montecarlo Simulation, and I have to enter different sample sizes for my wf. The largest sample size is 10,000.
I start my program setting my worfile like this:

wf u 10000

But I have to test samples of this size, n = {100,500,1000, 10000} , so I'm generating series with 10000 values, when I only need 100, 500 or 1000 so I'm getting a lot of zeros in my series for those samples below 10,000

How can I correct this problem? Maybe setting the sample size as an argument of the program? If I repeat the program for the 4 sizes I'll have 4 wf and my program wouldn't be so efficient.

Thanks for the help,

Re: Montecarlo Simulation

Posted: Mon May 06, 2013 2:31 pm
by EViews Gareth
I'd create 4 different workfiles of 4 different sizes. That's going to be the most efficient.