+ Reply to Thread
Results 1 to 1 of 1

Simulate 10000 binary vectors(marginal probabilities p1=.01,p2=.04, correlation=0.27

  1. #1
    Registered User
    Join Date
    03-18-2007
    Posts
    1

    Simulate 10000 binary vectors(marginal probabilities p1=.01,p2=.04, correlation=0.27

    I need to create a macro to simulate 10000 binary vectors where marginal probabilities p1=.01 and p2=.04 and correlation=.27. I have no problems simulating the vectors using the random number generator but I have problems ensuring that the correlation is 0.27. This macro looks okay to me but it runs forever. Do I need to use Cholesky to simulate the binary vectors?


    Please Login or Register  to view this content.
    Last edited by VBA Noob; 03-19-2007 at 03:14 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1