Dear sata experts,

I have a panel data set ranging from 2010-2018 for all firms listed i the US market.

I am trying to calculate the difference between maximum and minimum ROA over three overlapping years, and not sure what is the right command to do this. Would appreciate any advice!

Thanks
Array