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 at the end of May, and its replacement, statalist.org is already up and running.


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

st: Generating random variable with predefined characteristics


From   "Konrad Zdeb" <konrad_zdeb@gmx.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Generating random variable with predefined characteristics
Date   Fri, 31 May 2013 16:55:54 +0200

Dear Colleagues,

I would like to generate a random variable that would have the following characteristics:
 - would take values from 1 to 34
 - would display a strong correlation with another variable that is currently present in the data set
 - ideally, I would like to obtain distribution that would be positively skewed, but correlation with another variable is a priority

I will appreciate any help I can get.

--
Kind regards,
Konrad
*
*   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