Hello everyone,
This is my database.
Each org_uuid is matched with a specific investor_uuid. This are real matches.
Then each org_uuid has its own employee and each investor_uuid has its own partners.
Array
I want to build a counterfactual sample of all matches that did not happen. To do this I'm trying to mix the org_uuid and the investor_uuid, i.e, for the first org_uuid i want to match all the investor_uuid; then for the second org_uuid i want to match all the investor_uuid, and so on.
After that i want to rematch to each org_uuid, its employees and to each investors_uuid all its partners.
Each counterfactual march should be marked with 0, while each real match with 1, so that they can be recognised.
If anyone can help me, it would be really appreciated!
Thank you in advance!
Charlotte
Related Posts with How to mix the obs of two variables?
Variable Significance Changes After Adding Regional DummiesDear All, I have two simple yet complicated question. I run my regressions on survey data using th…
Take the latest observation per fiscal-periodHi, I want to take (or mark) the latest forecast (variable= forecast_date) per fiscal-period (varia…
Performing operations by values of a specific unit, by yearHi All, I have data that resembles the following: Code: * Example generated by -dataex-. To ins…
Help required for variable forecast procedureDear All I need some help with commands relating to earnings forecasts model: EARN(t+1)=b0+ b1EARN…
.ado Programming in Stata without invoking mata: Invalid Name error from within the functionStata Status: Beginner I have declared a local variable inside my function. And whenever I referenc…
Subscribe to:
Post Comments (Atom)
0 Response to How to mix the obs of two variables?
Post a Comment