TimeDepFrail
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.6%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: alessandragni
- License: gpl-3.0
- Language: R
- Default Branch: main
- Homepage: https://alessandragni.github.io/TimeDepFrail/
- Size: 8 MB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
TimeDepFrail: Time-Dependent Shared Frailty Cox Models in R
TimeDepFrail is the ultimate R package for fitting and analyzing Time-Dependent Shared Frailty Cox Models. These models extend the traditional Shared (Gamma) Frailty Cox Models by incorporating a time-dependent frailty component, making it a robust tool for studying how unexplained heterogeneity in data evolves over time.
This package implements the methods discussed in "Centre-Effect on Survival After Bone Marrow Transplantation: Application of Time-Dependent Frailty Models" by C.M. Wintrebert et al. (2004).
Installation
You can install the development version of the package from GitHub:
devtools::install_github("alessandragni/TimeDepFrail")
Dataset data_dropout
The data_dropout dataset is used to exemplify the package.
It tracks the academic progress of students enrolled in 2012 over three academic years (six semesters). This dataset aims to explore the factors leading to student dropout.
The dataset is composed of four variables:
Gender: Categorical covariate indicating gender (Male or Female).CFUP: Numeric covariate representing the standardized number of credits or CFUs (Credito Formativo Universitario) passed by the student in the first semester.time_to_event: The time (in semesters) when a student decides to drop out. A value greater than 6.0 means the student did not drop out during the follow-up period.group: Categorical variable representing the student's course of study, with 16 levels from CosA to CosP.
Students are followed for a maximum of 6 semesters (3 academic years), from the end of first semester until they drop out or the follow-up ends.
Model execution
To fit a Time-Dependent Shared Frailty model, the following elements are required:
- data as
data.frame, e.g.data_dropout time_axisvector: The time intervals for which the model is applied. For example, in thedata_dropoutdataset, no events occur in the first semester, so thetime_axisstarts at the end of the first semester (t = 1) and ends at the end of the third year (t = 6).categories_range_minandcategories_range_maxvectors: Provide minimum (categories_range_min) and maximum (categories_range_max) bounds for each parameter category to constrain the optimization.formulaobject: Specify the relationship between time-to-event, covariates, and group. For the clustering variable (group), it must be provided ascluster(group)in the formula.
Once these elements are prepared, you can call the desired model using the AdPaikModel() function.
For full examples, refer to the Examples/ReplicationCode.R script.
Additionally, for guidance on selecting model parameters such as time_axis, categories_range_min and categories_range_max,
we recommend base these choices on insights gained after fitting a Time-Unvarying Shared Frailty model.
You can find a relevant example in the Examples/ReplicationCode.R, in the Appendix D Section.
Analyzing results
Several built-in methods are available to analyze the results of the fitted model:
- Model Summaries:
summary(),plot(),print(),coef(),confint(),coefseAdPaik(),extractAIC(),logLik() - Baseline Hazard Step-Function:
bas_hazard()andplot_bas_hazard() - Frailty Standard Deviation/Variance:
frailty_sd()andplot_frailty_sd() - Posterior Frailty Estimates:
post_frailty_est(),plot_post_frailty_est(),post_frailty_var(),plot_post_frailty_var(),post_frailty_confint() - Conditional Survival Function:
survivalAdPaik()andplot_survivalAdPaik()
These methods provide insightful visualizations and summaries to help you interpret your model results effectively.
Furthermore, also a support function suitable for the choice of the range of parameters and analysis of the 1D log-likelihood is available, AdPaik_1D().
To be aware of
- The
AdPaikModelmodel is optimized for fast computation although estimating certain coefficients (e.g.,MaleversusFemale) may vary slightly in computational time. Note that changing the reference category (e.g., usingMaleas the baseline) alters the coefficient estimates but not the overall log-likelihood or model fit. Users should choose reference categories based on interpretability rather than performance.
Authors and maintainers of the code
Alessandra Ragni (alessandra.ragni@polimi.it), Giulia Romani (giulia.romani@mail.polimi.it), Chiara Masci (chiara.masci@polimi.it).
Owner
- Login: alessandragni
- Kind: user
- Repositories: 1
- Profile: https://github.com/alessandragni
GitHub Events
Total
- Issues event: 3
- Push event: 202
- Create event: 1
Last Year
- Issues event: 3
- Push event: 202
- Create event: 1
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 1
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 1
- Total pull request authors: 0
- Average comments per issue: 0.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 1
- Pull request authors: 0
- Average comments per issue: 0.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- agila5 (1)
- zhouyulin11929 (1)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 246 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 3
- Total maintainers: 1
cran.r-project.org: TimeDepFrail
Time Dependent Shared Frailty Cox Model
- Homepage: https://alessandragni.github.io/TimeDepFrail/
- Documentation: http://cran.r-project.org/web/packages/TimeDepFrail/TimeDepFrail.pdf
- License: GPL (≥ 3)
-
Latest release: 0.1.0
published about 1 year ago
Rankings
Maintainers (1)
Dependencies
- R >= 2.10 depends