Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: Generating random variable with predefined characteristics


From   "Konrad Zdeb" <[email protected]>
To   [email protected]
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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index