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
Dealing with a variable that has both numeric and categorical observationsHi everyone. I am new to this site so please bear with me. I am running a regression of property va…
Issue with rename on a foreach loopHi I am trying to start a loop so that I can rename my variables. I tried using the same format I …
Hierarchical anycountDear all, I have 2 sets of 8 variables and want to do egen x = anycount(varlist) values(1 3 6 7…
Out of sample cross-validation for counts data, am I correct?Dear all, I am working on counts data and my study is to compare performance of several models that…
Stata 15 crashes when using unicode translateDear community, I am using Chinese panel data for 2012 and 2014 and I've been using the Code: uni…
Subscribe to:
Post Comments (Atom)
0 Response to Lag variable creation
Post a Comment