Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Re:generating a chi2 distribution in version 9


From   "Victor M. Zammit" <[email protected]>
To   <[email protected]>
Subject   st: Re:generating a chi2 distribution in version 9
Date   Sun, 1 Feb 2009 23:31:50 +0100

Dear Statalist,

I need to generate dataset from a chi2(1) distribution.The code I am using
is

generate x2 = rchi2(1)

, and the result that I am getting is :

. gen x2 = rchi2(1)

Unknown function rchi2()

r(133);

I have Stata version 9 but I am afraid that the above is Version 10 code.

Can anyone help me with this.

Thank you very much,

Victor M.Zammit

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index