Statalist The Stata Listserver

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

st: simulations

Subject   st: simulations
Date   Sun, 27 May 2007 17:23:22 -0400

I have an ordered vector that goes from 1 to 20; call it x. How can I randomly
generate a bunch (say. 1000) vectors containing the same elements (1 to 20) but
such that the correlation between  each new vector and x is (say) 0.5?

Thanks a lot.


Development Research, World Bank
Email: or branko_mi@yahoo.
tel: 202-473-6968
World Bank, Room MC 3-581
1818 H Street NW
Washington D.C. 20433

For "Worlds Apart" see


For papers see also:
*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index