Hi Statalist,

I have a dataset, which looks like below, and I am trying to find the closest value to GG from G. I tried joinby, but I didn't get what I expected. Any insight would be appreciated! Thanks in advance
GG rank B Bpdf bidder G A Apdf
0.0010542965028435 1 0.725714683532715 0.12416495019745 2 0.000522602582350373 0.0764176174998283 0.222250495918054
0.00210970686748624 2 0.733580112457275 0.146774161154414 2 0.00104547862429172 0.0764176174998284 0.222496900726384
0.00369491893798113 3 0.750326931476593 0.178342050027757 2 0.00209205248393118 0.0764176174998285 0.305401473548525
0.00422388361766934 4 0.755616366863251 0.183626594542275 2 0.00523838074877858 0.0764176174998286 0.305401473548525