discotime.datasets.from_rstats module
- class discotime.datasets.from_rstats.Mgus2(data_config: DataConfig, data_dir: Path = PosixPath('/home/docs/checkouts/readthedocs.org/user_builds/discotime/envs/stable/lib/python3.10/site-packages/discotime/datasets/_data'), seed: int = 13411341)[source]
Bases:
LitSurvDataModuleNatural history of 1341 sequential patients with monoclonal gammopathy of undetermined significance (MGUS).
- [1]: R. Kyle, T. Therneau, V. Rajkumar, J. Offord, D. Larson, M. Plevak,
and L. J. Melton III, A long-terms study of prognosis in monoclonal gammopathy of undertermined significance. New Engl J Med, 346:564-569 (2002).
- property dset_fit: SurvDataset
- property dset_test: SurvDataset
- n_features = 7
- n_risks = 2
- prepare_data() None[source]
Fetch the built-in mgus2 from the R survival package.
The mgus2 data [1] is extracted from the rdata file and saved as a csv in the discotime installation directory. If the csv is already available, then the download logic is skipped.
[1]: Therneau T (2023). A Package for Survival Analysis in R.
- property time_range