Hi all,
my dataset is like that:
id data time
1 01jan2018
1 01jan2018
1 03jan2018
1 03jan2018
1 03jan2018
1 06jan2018
.... ................
2 01jan2018
2 01jan2018
2 01jan2018
2 01jan2018
2 05jan2018
2 05jan2018
2 07jan2018
.... ................
so, I want that to become
id data time
1 01jan2018
1 02jan2018
1 03jan2018
1 04jan2018
1 05jan2018
1 06jan2018
.... ................
2 01jan2018
2 02jan2018
2 03jan2018
2 04jan2018
2 05jan2018
2 06jan2018
2 07jan2018
.... ................
Could anyone help me?
Thanks for each reply.
Related Posts with Manipulating datatime
add different suffixes to 1500+ variable names using foreachDear all, I have been trying to add different suffixes (numbers) to a set of variables named v1, v2…
Highly Left Skewed variableHello, I wanted to run a panel logistic regression with dependent variable Y (0, 1) and an explanat…
How to test nonlinearity between hazard ratio and an Xvar after Cox regression with restricted cubic spline?Dear Statalist members, Recently I did a Cox regression with restricted cubic spline (mvrs) in orde…
posterior means for crossed random effects from logistic random intercept modeldear statalist members, I am trying to estimate the posterior means of two crossed random effects f…
Summarize Table Column WidthI'm new to Stata and sorry for the ignorance, but I can't find the code to make the first column in …
Subscribe to:
Post Comments (Atom)
0 Response to Manipulating datatime
Post a Comment