Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

st: generating synthetic data with a negatively skewed distribution?


From   Gwinyai Masukume <parturitions@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: generating synthetic data with a negatively skewed distribution?
Date   Mon, 18 Mar 2013 16:55:26 +0200

Dear Stata list,

I'm using version 12.1.

I'd like to generate synthetic data with a ? negatively skewed
distribution.

gen x =3D int(1964+(1999-1964)*runiform())

I would for example like a peak of events at say 1983, with more events
between 1983 and 1999 (with fewer events between 1964 and 1983).

I suspect that drawing from a beta distribution may work?

Thanks for your consideration.

Kind regards,
Gwinyai
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index