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
Wald or F-testI am using GSEM with the svy option (for weights). I am running these models on two separate subsamp…
Creating N subpopulations by random sampling without replacementDear all, I would like to ask you, wheter it is possible in Stata to create N subpopulations via sim…
How can I use the marginal effects after fixed effects and random effects models?Dear Statalist, I use linear model for panel data How can I use the marginal effects after these …
how to replace the blanks in macro "global" Code: global ctrl firmAge lnEmplNum lnTtlAsset lnRDMoney patentCount1 highTech innovEntAward gl…
City Industry leaderHello, I am trying to create the following dummy variable: dummy variable that takes the value of 1…
Subscribe to:
Post Comments (Atom)
0 Response to Manipulating datatime
Post a Comment