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
Related Posts with Sample from joint distribution
Stata Command "myqreg2" exists?I found a do file online where a very renowned economist used "myqreg2" command while estimating qua…
sample size for test accuracyIs there a preferred method for estimating the required sample size for testing the accuracy of a go…
Parallel trends graph for staggered difference-in-differencesMost papers that use staggered difference-in-differences seem to use regression evidence instead of …
Danish MP's political responsiveness - help with statistical significanceHello everyone Me and a fellow student are currently working on an assignment investigating politic…
Define a dummy with overlapping periodsDear All, I have this dataset Code: * Example generated by -dataex-. To install: ssc install dataex…
Subscribe to:
Post Comments (Atom)
0 Response to Sample from joint distribution
Post a Comment