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
Interpreting impulse response with log percentage as dependent variable and first difference of share as independent oneHello everyone, I estimate a VAR model where the dependent variable is log-transformed percentage (…
Normality test and intrpretation of swilk shapiro testDear All Can help me confusions i had while checking the noramlity of data.I have checked with histo…
Interpreting results: 1-standard-deviation increase in an explanatory variableThis table provides results of the analysis of the role of tax avoidance on returns. The dependent v…
error:*convergence not achievedHello everyone I am getting the error: convergence not achieved and I don't know why. I am using …
Create an indexI need to group 3 variables to build an index in Stata. Each variable refers to a question in a ques…
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