Random Number Generation: Gamma Distribution

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

gamma
Posts: 6
Joined: Wed Aug 24, 2011 7:50 pm

Random Number Generation: Gamma Distribution

Postby gamma » Wed Aug 24, 2011 8:01 pm

Hi guys,

May I ask how to generate 1000 observations from a two parameter gamma distribution?

Thank you in advance for any feedback

startz
Non-normality and collinearity are NOT problems!
Posts: 3798
Joined: Wed Sep 17, 2008 2:25 pm

Re: Random Number Generation: Gamma Distribution

Postby startz » Wed Aug 24, 2011 9:19 pm

Have you looked at the gamma random number generator described in the help system that comes with EViews?

gamma
Posts: 6
Joined: Wed Aug 24, 2011 7:50 pm

Re: Random Number Generation: Gamma Distribution

Postby gamma » Thu Aug 25, 2011 7:49 pm

Hi,
I originally looked through the pdf guide and couldn't find anything other than references in empirical testing.

I found what was needed in the help section.

Thanks for your help.

startz
Non-normality and collinearity are NOT problems!
Posts: 3798
Joined: Wed Sep 17, 2008 2:25 pm

Re: Random Number Generation: Gamma Distribution

Postby startz » Thu Aug 25, 2011 8:14 pm

Hi,
I originally looked through the pdf guide and couldn't find anything other than references in empirical testing.

I found what was needed in the help section.

Thanks for your help.
Yeah, it's in Command and Reference...but I can certainly see why one might think everything would be in the User Guide. I usually go straight to the help system and use the pdfs only when I need more detail.

fval
Posts: 1
Joined: Wed Oct 10, 2012 1:46 pm

Re: Random Number Generation: Gamma Distribution

Postby fval » Wed Oct 10, 2012 7:49 pm

With function @rtdist(v) I can generate one distribution with 0 mean. How can I get one student distribution with 0 mean and 1 standard deviation (int.)
tks guys!!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests