Stata Technical Bulletin
31
This is still not the desired result. We use csunits to
specify the cross-sectional units, then we recreate L.x:
6. |
IOl |
3 |
89.84 |
8.63 |
7. |
105 |
4 |
89.53 |
89.84 |
S. |
100 |
4 |
62.96 |
89.53 |
9. |
101 |
4 |
33.59 |
62.96 |
10. |
101 |
5 |
4.07 |
33.59 |
11. |
100 |
5 |
24.59 |
4.07 |
12. |
101 |
6 |
31.31 |
24.59 |
13. |
101 |
7 |
78.12 |
31.31 |
. csunits id
i lag x
(note: L.x replaced)
. list
id |
time |
x |
L.x | |
1. |
100 |
1 |
3.21 | |
2. |
105 |
2 |
94.58 | |
3. |
100 |
2 |
67.10 |
3.21 |
4. |
100 |
3 |
98.30 |
67.1 |
5. |
105 |
3 |
8.63 |
94.58 |
6. |
101 |
3 |
89.84 | |
7. |
101 |
4 |
33.59 |
89.84 |
8. |
100 |
4 |
62.96 |
98.3 |
9. |
105 |
4 |
89.53 |
8.63 |
10. |
101 |
5 |
4.07 |
33.59 |
11. |
100 |
5 |
24.59 |
62.96 |
12. |
101 |
6 |
31.31 |
4.07 |
13. |
101 |
7 |
78.12 |
31.31 |
lag now takes a nosort option that restores its original behavior.
Reference
Becketti, S. 1994. sts7: A library of time series programs for Stata. Stata Technical Bulletin 17: 28-32.
zz3.6 Computerized index for the STB
(Update)
William Gould, Stata Corporation, FAX 409-696-4601
The STBinformer is a computerized index to every article and program published in the STB. The command (and entire
syntax) to run the STBinformer is stb. Once the program is running, you can get complete instructions for searching the index
by typing ? for help or ?? for more detailed help.
The STBinformer appeared for the first time on the STB-16 distribution diskette and included indices for the first fifteen
issues of the STB. The STB-22 distribution diskette contains an updated version of the STBinformer that includes indices for the
first twenty-one issues of the STB. As the original insert stated, I intend to include an updated copy of this computerized index
on every STB diskette. I encourage you to contact me with suggestions for changes and improvements in the program.
Reference
Gould W. 1993. Computerized index for the STB. Stata Technical Bulletin 16: 27-32.