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

Resources: Download

Register to download Weighted Multistate Markov (WMSM) model (previous version 1.1)
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. An example code to run this Markov Model is provided through this CAsToR resource website. Please note: This download is for the previous version 1.1, released October 6, 2021. Click here to download the current version 1.3, released May 17, 2024. Version history
-Base distribution
-Add optional covariate matrix and confidence interval functionality to wmsm and fix minor typos.
-Fix initial parameter guess code in example.
-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.
-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).


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.

Copyright (c) 2021 Center for the Assessment of Tobacco Regulations (CAsToR). All rights reserved. Developed by: Center for the Assessment of Tobacco Regulations (CAsToR) 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.

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