I want to create the lag of a variable with one caveat. If it is missing, I want to use the previous period's value etc. So it is the most frequent non-missing lag. Any ideas?
Related Posts with Lag of variable with condition of not being misssing
Logit regressionI want to run logit regression. My dependent var is =1 if firm pay dividend and 0 otherwise. But my …
Problems with lower bound for a proportion below 0 for "teffects" commandDear Statalisters, I'm using Statalist 15.1. By using the "teffects" command in a case of binary out…
regressions with Fixed Effect and CCEMG/CCEP give different resultsDear all, I want to ask you about results of fixed effect and CCEP/CCEMG. I regressed my variables…
Constraints in a nonlinear regression with interaction termsDear all, I am running a fractional logit model, using fracglm, where Vote (the percentages of vote…
testhere is my code: Code: regress y x1 x2 estimates store my_regress some question text HTML Cod…
Subscribe to:
Post Comments (Atom)
0 Response to Lag of variable with condition of not being misssing
Post a Comment