Hello,
I have Data like this
input double id str6 V1 long V2 long V3
1 "A" 20180103 20180830
2 "B" 20160409 20161218
end
where V2(aaaammdd) is the starting date and V3(aaaammdd) is the end date.
Using these two variables I want to construct a data like this
input double id str6 V1 long V2 long V3 long V4
1 "A" 20180103 20180830 201801
1 "A" 20180103 20180830 201802
1 "A" 20180103 20180830 201803
1 "A" 20180103 20180830 201804
1 "A" 20180103 20180830 201805
1 "A" 20180103 20180830 201806
1 "A" 20180103 20180830 201807
1 "A" 20180103 20180830 201808
2 "B" 20160409 20161218 201604
2 "B" 20160409 20161218 201605
2 "B" 20160409 20161218 201606
2 "B" 20160409 20161218 201607
2 "B" 20160409 20161218 201608
2 "B" 20160409 20161218 201609
2 "B" 20160409 20161218 201610
2 "B" 20160409 20161218 201611
2 "B" 20160409 20161218 201612
end
where V4(aaaamm) is extract from V2 and V3.
Thank you for your patience and I am looking forward to your feedback.
Related Posts with Data management
2SLS with linear time trend.Hi all, I am estimating the following model using fixed effects including linear time trends. Cod…
Hausman testHi, I'm running a panel regression. These are my panel commands, followed by regression commands fo…
WlsI want to obtain WLS(Weighted Least Square) estimate susing -[aweight]- , I do not know what should …
how to export results from a regression to excel, using STATA 13Hi, Could someone help me with exporting me regression table to Excel. I have tried "copy table" an…
Joint significance of interactionsHello Everybody! I have a model y = 50+0.3*d-1*d*d+1.5*x+1.5*z-0.5*x*z-3.5*boy+u+5*rnormal() . All …
Subscribe to:
Post Comments (Atom)
0 Response to Data management
Post a Comment