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
quesiton about Stata programDear all, I want to write a program to transform World Development Indicator(WDI) to panel data.Also…
Keep/drop command affects different data than replacethe sample produced by this code replace region =. if region==-1 drop if region==. sum if region ==…
Indicate loss of observations by variableDear Statalist Community, I am looking for a command that tells me how many observations are lost w…
How to create a graph like this in STATA?I am conducting an event study where I want to graph out cumulative abnormal returns surrounding the…
EVENTDD error message with cross section dataI'm working with BRFSS data and its a cross section data. Need to create event study analysis and I …
Subscribe to:
Post Comments (Atom)
0 Response to Identifying 'nearest neighbours' without using teffects
Post a Comment