So you have a STATISTICs question.
You are using SAS, not FORTRAN or SQL. You probably can do it easily enough with a simple statistical procedure.
You appear to have already summarized the data to the country level. I see something that looks like a COUNT in addition to the MEAN and other statistics that are as clear.
Do you have the actual raw data also?
... View more