Hi,
I was wondering if anyone knows if you can directly use the system variables _n
ideally i would like to do
I am trying to make an index
i realise i can
but i would rather not create and drop a variable
grateful for any suggestions
I was wondering if anyone knows if you can directly use the system variables _n
ideally i would like to do
Code:
summ _n if myvar==1
i realise i can
Code:
gen index = _n summ index if myvar==1 drop index
grateful for any suggestions
Comment