Dear all,
I have a dataset that contains a precise time when an observation was made ( formated as %tc_DD-NN-YY_HH:MM: SS.sss). My intention is to create another variable, that contains the previous observation's observation time. However, I am not familiar with lag variables. I tried reading through the tsset help, but no luck. Whenever I actually try to create the lag variable, I only get missing values.
Any tip on how I could create this variable?
Related Posts with Lag variable creation
Renaming with nested loops over irregularly repeated variables in order to prepare data for RESHAPEHi everyone, Thanks for what you do, I have benefited from your discussions for a long time before …
Cluster ValidationDear Stata users, I was wondering whether there are any options to perform cluster validation in Sta…
Mechanics of FE in DiD estimationIt is not clear to me how the FE demeaning mechanically affects an estimation, especially with respe…
if and else in Stata versus MataDear all I am analysing the Mata code behind a command (fairlie) in order to understand what actuall…
Comparing xtreg and repeated-measures ANOVAHello, This is a partial repost of a question I asked here: https://www.statalist.org/forums/for...…
Subscribe to:
Post Comments (Atom)
0 Response to Lag variable creation
Post a Comment