Hi,
I have data for almost 7,000 organisations.
I want to use say, 6 variables, to identify the 60 most 'similar' organisations, for each of the 7,000 organisations.
So each organisation is assigned 60 nearest neighbors.
is there a way to do this outside of teffects?
Or is the 'best' way to use teffects in a loop where I have 1 treatment observation, and 6999 'controls'. With the neighbors identified one by one?
This would probably require a lot of computer time. However, I could speed it up by breaking the job up and running in parallel.
Regards,
Andrew
Related Posts with Identifying 'nearest neighbours' without using teffects
How do I make a value repeat itself across observations per ID?I have variables ID, Name, Age and Income. Income is the income of the household head. I want the in…
Using inverse probability weights to increase balance among covariatesHello. I'm running a difference-in-difference model, and so have two groups. I'm using inverse proba…
Between Group Baseline Difference in Randomized Control Trial?I know many of you are much smarter than I.. I'm analyzing data for an RCT with relatively small n (…
Gen Variable: Percentage Share (Row)Dear Statalisters, I'd like to calculate the percentage share of "experience" a member has in its p…
Help with esttabHi, I am working with the userwritten command -esttab-, and have been referring to the following ex…
Subscribe to:
Post Comments (Atom)
0 Response to Identifying 'nearest neighbours' without using teffects
Post a Comment