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
Help selecting font with collect style putdocxHi, I am trying to export a collection to an MS Word document where the entire table uses the "Time…
Truncating numerical dates to yearsI am trying to merge a few datasets, and one of them uses very specific date information in a format…
Setting up time-to-first-event variablesHello, I am new to Stata and looking to efficiently set up time-to-event variables for the time to …
Crude incidence rate straitfied by calendar yearI have estimated the overall crude incidence rate of diabetes in people with hypertension (the study…
ologitgof - Package ?Hi everyone! I need to run goodness-of-fit tests post-ordinal regression models, but can't find any…
Subscribe to:
Post Comments (Atom)
0 Response to Lag of variable with condition of not being misssing
Post a Comment