Dear all,
Please advise me on how to calculate the additive sum and mean by year, as shown in the snapshot I've pasted below. I appreciate it in advance.
I need the last two columns.
Please advise me on how to calculate the additive sum and mean by year, as shown in the snapshot I've pasted below. I appreciate it in advance.
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str4 YEAR str6 ID float VISIT "2020" "A" 35 "2020" "B" 35 "2020" "C" 32 "2021" "D" 30 "2021" "E" 45 "2021" "F" 43 "2021" "G" 42 "2022" "H" 45 "2022" "I" 47 "2022" "J" 46 "2022" "K" 50 "2023" "L" 52 "2023" "M" 51 "2023" "N" 55 "2024" "O" 58 "2024" "P" 53 "2024" "Q" 58 "2024" "R" 55 end
Comment