Dear all,
I am happy to announce the availability of a new Stata package, called dtms. The command name is the abbreviation for "discrete-time multistate" model estimation which has been developed over the last two decades (see, for example, Millimet et al 2003, Lièvre et al 2003, Lynch and Brown 2006, Cai et al. 2010) and has become ever more popular in recent years, especially in epidemiology and demography, but also in other fields. Both continuous-time and discrete-time multistate models have their advantages and disadvantage. Among the advantages of discrete-time models is that they are typically more accessible in terms of intellectual investment and computational burden.
There are other discrete-time routines out there (see the citations above), but none, to my knowledge, for Stata. Moreover, inference so far has mostly been based on simulation methods and has therefore been computationally costly. The dtms package incorporates newly derived formulas for the asymptotic covariance matrices related to state expectancies and mean age at first incidence, as well as for group comparisons of these results. The derivations of the relevant formulas are contained in the methods PDF file that accompanies the package. I have invested time to make things computationally efficient. Everything is now in what I would consider the interactive range (say, up to a minute or so of waiting time for larger models).
Even though I have been working on the package for quite a while now, due to its scope it is still in developmental status. I consider it, however, advanced enough to be useful for others. I am using the package as it is in my own research and have put substantial efforts into test scripts. Nevertheless, due to the breadth of the suite of commands, one still may occasionally encounter bugs. Please also note that, while I will try hard to avoid syntax changes in future package versions, they are still possible at this point, so you may have to adjust your do-files that use dtms when you upgrade to a higher package version.
You can install the package using
Once I consider the syntax stable, I will move the package to SSC. The minimum required Stata version is 16.1.
dtms is a larger suite of commands that not only performs the core multistate calculations but also provides a fairly elaborate mechanism for organizing results. Therefore, it may take a little time until one gets the hang of working with the package. After installation,
will get you started. Section "Description" of that help entry contains a note on the suggested reading order of other help entries and sections for people that are new to the package. One of the first things to look at is the help entry
which is entirely dedicated to point-and-click examples.
I hope dtms will be useful to some of you. Any feedback is, of course, highly welcome.
I am happy to announce the availability of a new Stata package, called dtms. The command name is the abbreviation for "discrete-time multistate" model estimation which has been developed over the last two decades (see, for example, Millimet et al 2003, Lièvre et al 2003, Lynch and Brown 2006, Cai et al. 2010) and has become ever more popular in recent years, especially in epidemiology and demography, but also in other fields. Both continuous-time and discrete-time multistate models have their advantages and disadvantage. Among the advantages of discrete-time models is that they are typically more accessible in terms of intellectual investment and computational burden.
There are other discrete-time routines out there (see the citations above), but none, to my knowledge, for Stata. Moreover, inference so far has mostly been based on simulation methods and has therefore been computationally costly. The dtms package incorporates newly derived formulas for the asymptotic covariance matrices related to state expectancies and mean age at first incidence, as well as for group comparisons of these results. The derivations of the relevant formulas are contained in the methods PDF file that accompanies the package. I have invested time to make things computationally efficient. Everything is now in what I would consider the interactive range (say, up to a minute or so of waiting time for larger models).
Even though I have been working on the package for quite a while now, due to its scope it is still in developmental status. I consider it, however, advanced enough to be useful for others. I am using the package as it is in my own research and have put substantial efforts into test scripts. Nevertheless, due to the breadth of the suite of commands, one still may occasionally encounter bugs. Please also note that, while I will try hard to avoid syntax changes in future package versions, they are still possible at this point, so you may have to adjust your do-files that use dtms when you upgrade to a higher package version.
You can install the package using
Code:
. net install dtms , from(https://user.demogr.mpg.de/schneider/stata)
dtms is a larger suite of commands that not only performs the core multistate calculations but also provides a fairly elaborate mechanism for organizing results. Therefore, it may take a little time until one gets the hang of working with the package. After installation,
Code:
. help dtms
Code:
. help dtms examples
I hope dtms will be useful to some of you. Any feedback is, of course, highly welcome.
Comment