Dear All,
Using Stata 14 on Windows 10 Computer, I have been trying to -xtset- a quarterly panel data which creates the start data different than the actual as:
. xtset id date, quarterly
panel variable: id (strongly balanced)
time variable: date, 1960q2 to 1976q2
delta: 1 quarter
Then I tried used quarter() and dofq() but the Date has been created missing values as:
. list in 1/10
+---------------------------------------------------------------+
| year id sp gdp fdi dcps date2 date3 |
|---------------------------------------------------------------|
1. | 1999-1 1 28.1 .71 1.0e+08 1068.8 . . |
2. | 1999-2 1 28.9 1.09 3.3e+08 1133.42 . . |
3. | 1999-3 1 30 1 2.9e+08 1159.88 . . |
4. | 1999-4 1 26.9 1.08 4.4e+08 1176 . . |
5. | 2000-1 1 27.8 .66 3.6e+08 1229.69 . . |
|---------------------------------------------------------------|
6. | 2000-2 1 32 .97 8.3e+08 1207.12 . . |
7. | 2000-3 1 25.1 .89 8.1e+08 1220.71 . . |
8. | 2000-4 1 22.9 1.32 8.0e+08 1243.76 . . |
9. | 2001-1 1 25 .74 4.0e+08 1247.73 . . |
10. | 2001-2 1 28.5 1.21 4.6e+08 1352.49 . . |
+---------------------------------------------------------------+
I read the DATETIME Stata manual but did not find hint there.
Can someone suggest how to transfer the year to a quarterly recognized data which after xtset should give the true 1999-1 as start date?
Regards
Using Stata 14 on Windows 10 Computer, I have been trying to -xtset- a quarterly panel data which creates the start data different than the actual as:
. xtset id date, quarterly
panel variable: id (strongly balanced)
time variable: date, 1960q2 to 1976q2
delta: 1 quarter
Then I tried used quarter() and dofq() but the Date has been created missing values as:
. list in 1/10
+---------------------------------------------------------------+
| year id sp gdp fdi dcps date2 date3 |
|---------------------------------------------------------------|
1. | 1999-1 1 28.1 .71 1.0e+08 1068.8 . . |
2. | 1999-2 1 28.9 1.09 3.3e+08 1133.42 . . |
3. | 1999-3 1 30 1 2.9e+08 1159.88 . . |
4. | 1999-4 1 26.9 1.08 4.4e+08 1176 . . |
5. | 2000-1 1 27.8 .66 3.6e+08 1229.69 . . |
|---------------------------------------------------------------|
6. | 2000-2 1 32 .97 8.3e+08 1207.12 . . |
7. | 2000-3 1 25.1 .89 8.1e+08 1220.71 . . |
8. | 2000-4 1 22.9 1.32 8.0e+08 1243.76 . . |
9. | 2001-1 1 25 .74 4.0e+08 1247.73 . . |
10. | 2001-2 1 28.5 1.21 4.6e+08 1352.49 . . |
+---------------------------------------------------------------+
I read the DATETIME Stata manual but did not find hint there.
Can someone suggest how to transfer the year to a quarterly recognized data which after xtset should give the true 1999-1 as start date?
Regards
Comment