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
Moderating Vs. average marginal effects of the modelsHi, Statalisters: I am not so much good in posting on the forum, please excuse me for not adhering t…
Omitted because of collinearityI am running a regression with 5 dummy variables and 6 non-dummy variables. One of the dummy variabl…
Merging two datasets by different variable names (fuzzy match) - help with reclink and matchitHi, I am using two datasets with the aim to merge them according to the name of the place. The firs…
Help with summary tableI want to create a table like the one in the attached photo, showing the average values of my variab…
Event study with thin trading and many events(clustering)I am doing an event study on the transfer market in football. However during this research, I have e…
Subscribe to:
Post Comments (Atom)
0 Response to Generating random variables based on some predefined correlations
Post a Comment