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
Related Posts with flag certain observation
volatility of the firm's equity(annualized standard deviation) and Annualized drift rate (expected rate of return of the firm's assets)Dear All, Hope my msg finds you very well. I have a panel data 252 observations (daily ) for each …
Instrumental variable with between effectsDear All, I hope you are all fine. My data set is panel data and I am doing my analysis using betwee…
Sample split or interactions in fixed effects regressionDear Stata community, I'm currently analyzing whether capital controls affect economic development …
Summarize by time for panel dataDer Statalist users, I am trying to generate summary statistics(mean, standard deviation and quinti…
Peribon's delta beta - bivariate logit regressionDear Statalist I'm trying to identify influential observations in a bivariate logistic regression u…
Subscribe to:
Post Comments (Atom)
0 Response to flag certain observation
Post a Comment