Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Sample from joint distribution

    Hi,

    I was wondering if there is a way to generate a dataset with 100 observations, with two variables from a joint normal distribution with zero expectation, variances equal to one and correlation coefficient equals to rho (=0.4 for example). I know how to randomly generate data for individual variables but not from a joint normal distribution with specific rho.

    Thank you

  • #2
    You may refer to command drawnorm or a manual instruction.
    Last edited by Fei Wang; 19 Dec 2021, 23:06.

    Comment


    • #3
      Perfect, thank you

      Comment

      Working...
      X