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
Cox regression hazard ratio interpretation----------------------- Code: * Example generated by -dataex-. For more info, type help dataex clea…
Deleting household member when panelist and moving other household members into the gapHi, I’ve been working on a large panel study. We’ve reshaped a database for the entire population by…
calculation odd ratio for interaction terms using LincomI am doing logistic regression to look at several predictors for a certain outcome. I checked the in…
Can I define the cell contents of a table (or matrix)?New here, new to Stata (v17) I'm trying to create a table to later be exported to Excel. I would li…
Number of instruments more than number of groups in estimation resultI am a first-time user of STATA. I am trying to use system GMM to estimate a social welfare function…
Subscribe to:
Post Comments (Atom)
0 Response to Lag variable creation
Post a Comment