TCORS: Center for the Assessment of Tobacco Regulations (CAsToR)

Resources: Download

Register to download Weighted Multistate Markov (WMSM) model (current version 1.3)
About this resource

Dr. Brouwer developed a weighted multistate Markov state transition model, which estimates underlying transition rates between tobacco use states from longitudinal data on individuals, incorporating complex survey design that requires use of sample weights. The model was further specified to estimate the effect of sociodemographic variables on the rates of these transitions. This code was designed for use with data from the Population Assessment of Tobacco and Health (PATH) Study, but can be used with other data sets. This resource includes example code and a tutorial; the example focuses on more technical details while the tutorial is a more friendly introduction to using the model. Please note: This download is for the current version 1.3, released May 17, 2024.
Click here to download the previous version 1.2, released March 22, 2023.
Click here to download the previous version 1.1, released October 6, 2021.
Click here to download the previous version 1.0, released October 22, 2020.
Version history
1.0
-Base distribution
1.1
-Add optional covariate matrix and confidence interval functionality to wmsm and fix minor typos.
-Fix initial parameter guess code in example.
1.2
-Add the covfix argument, so that covariate hazard ratios can be estimated for only specified transitions.
-Add functionality for numeric valued covariates.
-Add maxfun as a optional argument.
1.3
-Fix bug in which the referent group of covariates in multivariable models could be wrong when mixing factor and continuous covariates
-Change covfix functionality so that specified log hazard ratios are fixed at initial conditions, not 0.
-Aligned control argument with msm model. See help(bobyqa).

License

Please read the license below. If you accept the license, please fill out the form below and register for the download with a valid email address. Your registration indicates your acceptance of the license.

License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal with the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . Redistributions of the program or source code must retain the above copyright notice, this list of conditions and the following disclaimers. . Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimers in the documentation and/or other materials provided with the distribution. . Neither the names of CAsToR, University of Michigan TCORS, CISNET, nor the names of its contributors may be used to endorse or promote products derived from this Software without specific prior written permission. THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE. For more details see associated documentation and the associated paper. Brouwer AF, Jeon J, Hirschtick JL, Jimenez-Mendoza E, Mistry R, Bondarenko IV, Land SR, Holford TR, Levy DT, Taylor JMG, Fleischer NL, Meza R. (in press). Transitions between cigarette, ENDS, and dual use in adults in the PATH study (Waves 1-4): multistate transition modeling accounting for complex survey design. Tobacco Control.

PLEASE NOTE: Fields marked with an asterisk (*) are required.