Stata Technical Bulletin
29
The variable z-Filez indicates in which file the time change is originated,
either job , mar , or both.
Record from I
file... I |
Freq. |
Percent |
Cum. |
— | |||
job I |
3 |
50.00 |
εo.oo |
mar I |
2 |
33.33 |
83.33 |
both I |
1 |
16.67 |
100.00 |
------------+--- |
— | ||
Total I |
6 |
100.00 |
file job-mar.dta saved
The result is
. list, nodisplay noobs
id |
birth |
Tjob |
prof |
time |
carl |
Tmar |
car2 |
,File |
2 |
63 |
80 |
3 |
78 |
1 |
78 |
4 |
mar |
2 |
63 |
80 |
3 |
80 |
2 |
89 |
3 |
job |
2 |
63 |
84 |
1 |
84 |
2 |
89 |
3 |
job |
2 |
63 |
sε |
2 |
sε |
2 |
89 |
3 |
job |
2 |
63 |
89 |
1 |
89 |
2 |
89 |
3 |
both |
Note that the original dates, Tjob and Tmar, are not modified. Only the new time variable, time, should be used in subsequent
analysis. tmerge creates a new variable, -File, which records the file from which the transition originated.
sss1.1 Updated U.S. marginal income tax rate function
Timothy J. Schmidt, Federal Reserve Bank of Kansas City, 816-881-2307
STB-15 included an addition to the egen command ([5d] egen)—the mtr() function (Schmidt 1993). The mtr() function
finds the marginal income tax rate corresponding to any given level of taxable income for a married couple filing jointly in the
United States. While the original version covered the years 1930 to 1990, the updated version of mtr() extends through the
1994 tax year.
The syntax is unchanged from the original version:
egen [ type ] varname = rtΛr (year ,income) [ if exp [ in range
The year and income variables can be replaced with constants. For example,
. egen taxrate = mtr(1993,myincome)
Reference
Schmidt, T. 1993. sss1: Calculating U.S. marginal income tax rates. Stata Technical Bulletin 15: 17-19.
sts7.4 A library of time series programs for Stata (Update)
Sean Becketti, Stata Technical Bulletin, FAX 914-533-2902
In sts7, a library of time series programs for Stata was introduced (Becketti 1994). That insert described an approach to
time series analysis that builds on Stata’s core commands and on its extensibility. The insert also cataloged the programs in the
time series library.
As sts7 promised, the time series library is updated in each issue of the STB. New programs and revisions are posted on the
STB distribution diskette. If you use the time series library, you should copy each new version over your existing version. Type
help tsnew to see a history of the changes in the library. Type help ts to see a catalog of all the programs in the library.
New features
This edition of the time series library marks the introduction of commands to handle panel data sets; that is, data sets that
include time series observations on multiple cross-sectional units. This extension is not fully implemented yet: not all commands
in the time series library handle panel data. Moreover, this extension introduces fundamental changes in the internal operations
of several important commands, most notably the lag command. These changes should not affect the operation of the commands
if you do not use the panel data extensions. However, the potential for unintended side effects exists.