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
Kakwani indexDear all, I am trying to calculate the Kakawni index (K) , which is the difference between the conc…
Panel Data - mean/median by specific variableHi, I have panel data with several stocks and dates. I have variable X which is defined for each da…
comparing the magnitude of two independent variablesI regressed x1 and x2 on y seperately and jointly. After the joint regression, I want to compare the…
Kakwani indexDear all, I am trying to calculate the Kakawni index (K) , which is the difference between the conc…
Help needed creating & deleting observationsHi all, I have a database management problem that feels like it should be solvable, but I am just n…
Subscribe to:
Post Comments (Atom)
0 Response to Lag variable creation
Post a Comment