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
Create Nomolog with Negative VariablesGood day I am trying to create a nomogram using nomolog OR db nomolog However, it returns to me as …
How to add the groups used in a regression to outreg2 export table?Dear all, I am using a panel dataset with 217 countries for the years 1960-2019 for LPM/OLS regress…
Generate a group if an ID starts with an AHi all, I am trying to generate a group=1 if an ID starts with a certain letter/number. Do you have…
Stata seems to override memory limits and take up the entire memoryI am using package synth. If run for long, synth progressively consumes all available RAM. It is not…
MI Impute ErrorHi Statalisters, I've encountered a problem with a MI impute code. The mIssing data table is below:…
Subscribe to:
Post Comments (Atom)
0 Response to Sample from joint distribution
Post a Comment