Dear reader,
I would like to flag a certain observation if it is the 24th observation starting at the fifth one, the following formula is not working. How should I alter it?
gen flag=0
forvalue 1/$N{
replace flag=1 if (obs==_n+5+_n*29)
}
Kind regards
0 Response to flag certain observation
Post a Comment