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/