Dear Stata Members
I would like to ask a few questions and clear some doubts regarding regressions but for that, I need to create some random variables with some pre-defined correlations. So please help me to create some panel data with 4 four variables (v1,v2,v3, & v4) that has the following correlations
1. v1 and v2 (0 correlation)
2. v2 and v3 (some positive .50 to .60 correlation)
3. v2 and v4 (some negative .50 to .60 correlation
4. v3 & v4 (some low correlation 0.05-.12)
150-200 observations will be fine and if the panel is not easy then let these variables be some time series ones.
Did I make sense by asking the question? These artificially created variable can help me in testing some assumptions of OLS. I tried excel but couldn't meet these requirements.
Related Posts with Generating random variables based on some predefined correlations
LabelsHello, i'm sure my problem is very basic, but I couldn't find an answer in past topics. An example …
Questions about how to combine PSM and DIDHi. I am studying the impact of law on employment rates. In order to remove the selection bias, I am…
Which model would you recommend to use? Panel DataHi all, I do my University work and need your help. I have a panel data and want to know how 10 inde…
mgarch dcc predicted correlationsHello, Does anyone know why mgarch dcc predicted correlations begin with unreasonable values? For e…
Calculating the average risk taking ratio of similarly sized, successful other firms at TDear all, I have an unbalanced panel data. I am trying to calculate the average risk-taking ratio o…
Subscribe to:
Post Comments (Atom)
0 Response to Generating random variables based on some predefined correlations
Post a Comment