Hi, I have generate a variable which I have called X, it has a uniform distribution like this: gen x=runiform(0,2). I want to create another variable, called it Y, that has a fixed correlation with X. For instance 0.5. I have already tried commands such as corr2data but they do not work the way I want to. I will sincerely appreciate a little help with my problem, thank you very much.
Related Posts with How to generate a variable with with fixed correlations to an existing variable which already has a uniform distribution
How to create control group against fraud firms?Dear all, I want to create a control sample of non-fraud firms against firms that committed fraud. I…
Estimate GARCH-DCC with asymmetriesHas anyone had experience estimating GARCH-DCC models with asymmetries (GJR for example)? Can this b…
bysort queryHello, I am trying to use bys to generate sequential and total number of Lines of treatments by pati…
Multiple time-failure analysis, event-specific coeffcients?Dear all, I am using stcox along with a stratification variable to estimate the hazard functions fo…
ElasticitiesHello, I would like to estimate the exports elasticity and the imports elasticity of some countries…
Subscribe to:
Post Comments (Atom)
0 Response to How to generate a variable with with fixed correlations to an existing variable which already has a uniform distribution
Post a Comment