How do I get one value when I want to calculate all values without repetition?
-
Login or Register
- Log in with
bysort id_notice_can year value2 : keep if _n == 1
bysort id_notice_can year value2 : gen byte mark = _n == 1 some_other_command_doing_some_unspecified_calculation if mark == 1
Comment