Is there any way to take multi level summary of data, only choosing observations corresponding to unique values of a certain variable in sas?
I want to run something like a proc summary, but in each segment defined by TYPE i only want to sum the values corresponding to unique values of an identifier variable.
I'm giving below a mock data, and a template of the desired output.
https://docs.google.com/spreadsheets/d/1c-IsQpgtNR0EEKCdKZkU6WC6TBGNfUaiiS5ZYZJumkQ/edit?usp=sharing