Dear users of the list. I am using Eviews 7. I would like to know how can I generate a series with 100 values, generated by normal with (0,9) parameters. I have read about how to generate random numbers with a normal distribution, but there is no mention about how to include specific parameters into this generation.
Anaybody can help? thanks.
random number generation
Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13319
- Joined: Tue Sep 16, 2008 5:38 pm
Re: random number generation
Follow us on Twitter @IHSEViews
Re: random number generation
Thanks for your reply Gareth. One additional question: if I need to create 100 diff series following the same distribution, do I have to run a loop? I'm not clear about how to do it.
Thanks for your help.
Thanks for your help.
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13319
- Joined: Tue Sep 16, 2008 5:38 pm
Re: random number generation
Yep.
Code: Select all
!mean = 0
!var = 9
!n = 100
for !i = 1 to !n
series x!i = !mean + @sqrt(!var)*nrnd
next
Follow us on Twitter @IHSEViews
Who is online
Users browsing this forum: No registered users and 30 guests