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
Generate sum of multiple variable without including years when there are missing values I want to create sum of some variables but without including sum when there are missing values in o…
Fuzzy identification using jarowinkler distanceHello, I have a dataset, with 2.800.000 observations and 10 variables, containing the information o…
Fractional multinational logit with fixed effectsHi, I have a panel data for 24 years. I want to see how state governments allocate total budget amo…
Multilevel regresion xtmixed or mixedHi all, I have date of 100 employees per company, for several companies. I would like to perform a …
Problem with mergingAfter I deleted a country in my panel data I saved my dataset but it still creates problem when I wa…
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