Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Sampling from a t-distribution using Stata


From   [email protected]
To   [email protected]
Subject   st: Sampling from a t-distribution using Stata
Date   Mon, 4 Jun 2007 11:23:55 -0300 (BRT)

Dear statalisters,

I would like to generate a new variable called "x", in which "x" has a
t-distribution with n-3 degrees of freedom (where n is the number of new
generated observations), a mean "m" and a standard deviation, "sd", that
is:

x ~ t-distribution[n-3 df] (m, sd)

How do I obtain a set of 100 new observations assuming that m=0.4 and
sd=0.05 using Stata?

I will be very grateful for any help.

Regards,


Tiago







*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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