Dear reader,
I would like to flag every 24th observation starting from fifth observation onwards. The following formula is not working. How should I alter it?
gen flag=0
forvalue 1/$N{
replace flag=1 if (obs==_n+4+_n*28)
}
Kind regards
I would like to flag every 24th observation starting from fifth observation onwards. The following formula is not working. How should I alter it?
gen flag=0
forvalue 1/$N{
replace flag=1 if (obs==_n+4+_n*28)
}
Kind regards
Comment