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
Renaming multiple excel filesHi everyone, I wish to rename some excel files on STATA so that only the first 4 characters appear …
Quantile regression (QR) for fixed effect panel data : which command is more approriated ?Dear all, i'm working on may PhD thesis ( the impact of risk taking on firm performence) using a da…
Do file giving different tablesHi Guys! I'm trying to replicate a paper from the American Economic Association- Racial Discriminati…
CEM: Stata vs RDear StataListers, I can't get why the analyzes below, performed in Stata / R, do not produce the s…
Past event absorbHi there, I need the stockprice of the last day from the year before the announcementdate I have …
Subscribe to:
Post Comments (Atom)
0 Response to Identifying 'nearest neighbours' without using teffects
Post a Comment