Statalist The Stata Listserver


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

st: simulations


From   [email protected]
To   [email protected]
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.


Branko



Development Research, World Bank
Email: [email protected] 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
http://www.pupress.princeton.edu/titles/7946.html

Website:
http://econ.worldbank.org/projects/inequality

For papers see also:
http://econpapers.hhs.se/
http://papers.ssrn.com/sol3/cf_dev/AbsByAuth.cfm?per_id=149002
*
*   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