Package: RFmstate
Type: Package
Title: Random Forest-Based Multistate Survival Analysis
Version: 0.1.2
Authors@R: person("Yiqing", "Chen", role = c("aut", "cre"),
    email = "y.chen@tamu.edu")
Author: Yiqing Chen [aut, cre]
Maintainer: Yiqing Chen <y.chen@tamu.edu>
Description: Fits cause-specific random survival forests for flexible
    multistate survival analysis with covariate-adjusted transition
    probabilities computed via product-integral. State transitions are 
    modeled by random forests. Subject-specific transition probability matrices 
    are assembled from predicted cumulative hazards using the product-integral formula.
    Also provides a standalone Aalen-Johansen nonparametric estimator as
    a covariate-free baseline. Supports arbitrary state spaces with any
    number of states (three or more) and any set of allowed transitions,
    applicable to clinical trials, disease progression, reliability
    engineering, and other domains where subjects move among discrete
    states over time. Provides per-transition feature importance,
    bias-variance diagnostics, and comprehensive visualizations. Handles
    right censoring and competing transitions. Methods are described in
    Ishwaran et al. (2008) <doi:10.1214/08-AOAS169> for random survival
    forests, Putter et al. (2007) <doi:10.1002/sim.2712> for multistate
    competing risks decomposition, and Aalen and Johansen (1978)
    <https://www.jstor.org/stable/4615704> for the nonparametric
    estimator.
License: MIT + file LICENSE
Encoding: UTF-8
Depends: R (>= 4.1.0)
Imports: survival, ranger, stats, graphics, grDevices, utils
Suggests: knitr, rmarkdown, mstate, testthat (>= 3.0.0)
VignetteBuilder: knitr
Config/testthat/edition: 3
RoxygenNote: 7.3.3
NeedsCompilation: no
Packaged: 2026-02-27 16:41:43 UTC; y.chen
Repository: CRAN
Date/Publication: 2026-03-11 16:40:16 UTC
Built: R 4.4.3; ; 2026-03-27 19:54:47 UTC; windows
