Package: dtms 0.4.3

dtms: Discrete-Time Multistate Models

Discrete-time multistate models with a user-friendly workflow. The package provides tools for processing data, several ways of estimating parametric and nonparametric multistate models, and an extensive set of Markov chain methods which use transition probabilities derived from the multistate model. Some of the implemented methods are described in Schneider et al. (2024) <doi:10.1080/00324728.2023.2176535>, Dudel (2021) <doi:10.1177/0049124118782541>, Dudel & Myrskylä (2020) <doi:10.1186/s12963-020-00217-0>, van den Hout (2017) <doi:10.1201/9781315374321>.

Authors:Christian Dudel [aut, cre]

dtms_0.4.3.tar.gz
dtms_0.4.3.zip(r-4.7)dtms_0.4.3.zip(r-4.6)dtms_0.4.3.zip(r-4.5)
dtms_0.4.3.tgz(r-4.6-any)dtms_0.4.3.tgz(r-4.5-any)
dtms_0.4.3.tar.gz(r-4.6-any)dtms_0.4.3.tar.gz(r-4.5-any)
dtms_0.4.3.tgz(r-4.5-emscripten)
dtms.pdf |dtms.html
dtms/json (API)
NEWS

# Install 'dtms' in R:
install.packages('dtms', repos = c('https://christiandudel.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/christiandudel/dtms/issues

Datasets:
  • simpledata - Simpledata: an artificial data set with abstract trajectories
  • workdata - Workdata: simulated working trajectories

On CRAN:

Conda:

5.19 score 14 stars 9 scripts 268 downloads 34 exports 29 dependencies

Last updated from:46758092bb. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK135
source / vignettesOK179
linux-release-x86_64OK173
macos-release-arm64OK159
macos-oldrel-arm64OK210
windows-develOK94
windows-releaseOK97
windows-oldrelOK99
wasm-releaseOK109

Exports:dtmsdtms_absorbeddtms_aggregatedtms_backwarddtms_bootdtms_boot_summarydtms_censoringdtms_cleandtms_data_summarydtms_deltadtms_distr_summarydtms_durationdtms_expectancydtms_firstdtms_fitdtms_formatdtms_forwarddtms_fullfitdtms_lastdtms_matrixdtms_nonparametricdtms_occurrencedtms_plotdtms_probs_summarydtms_rewarddtms_rewardmatrixdtms_riskdtms_simplifydtms_simulatedtms_sourcedtms_startdtms_survivordtms_transitionsdtms_visits

Dependencies:clicodetoolscpp11data.tabledoParallelexpmforeachglueigraphiteratorsjsonlitelatticelifecyclemagrittrmarkovchainMASSMatrixmclogitmemiscnlmennetpkgconfigRcppRcppArmadilloRcppParallelrlangvctrsVGAMyaml

Readme and manuals

Help Manual

Help pageTopics
Create dtms objectdtms
Calculate the distribution of the time until entering an absorbing statedtms_absorbed
Aggregate datadtms_aggregate
Carry states backwarddtms_backward
Bootstrap and block bootstrapdtms_boot
Summary function for bootstrap resultsdtms_boot_summary
Left censoring, right censoring, and gaps in datadtms_censoring
Cleans data in transition formatdtms_clean
Summarize data in transition formatdtms_data_summary
Calculate deltadtms_delta
Summary for distributional resultsdtms_distr_summary
Generate variable with durationdtms_duration
Calculate state expectancydtms_expectancy
Time needed to reach a subset of states for the first timedtms_first
Estimate (un)constrained discrete-time multistate modeldtms_fit
Reshape data to transition formatdtms_format
Carry states forwarddtms_forward
Estimate unconstrained discrete-time multistate modeldtms_fullfit
Calculate the distribution of the time until a subset of states is left for the last time.dtms_last
Creates a transition matrix from transition probabilitiesdtms_matrix
Nonparametric estimates of transition probabilitiesdtms_nonparametric
Generate variable with number of occurrence of statedtms_occurrence
Plotting transition probabilitiesdtms_plot
Summarize transition probabilitiesdtms_probs_summary
Markov chain with rewardsdtms_reward
Generate the reward matrix for a Markov chain with rewardsdtms_rewardmatrix
Calculate the lifetime risk of ever reaching a statedtms_risk
Simplify state namesdtms_simplify
Simulation of Markov chainsdtms_simulate
Source code only from specific linesdtms_source
Tabulate starting distributiondtms_start
Calculate the survivorship functiondtms_survivor
Predict transition probabilitiesdtms_transitions
Calculate the distribution of the time spent in a subset of statesdtms_visits
simpledata: an artificial data set with abstract trajectoriessimpledata
workdata: simulated working trajectoriesworkdata