Science Score: 39.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
Found .zenodo.json file -
✓DOI references
Found 4 DOI reference(s) in README -
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (7.7%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: chengqianxian
- License: other
- Language: R
- Default Branch: main
- Size: 1.01 MB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
survregVB
Overview
survregVB is an R package that provides Bayesian inference for log-logistic accelerated failure time (AFT) models used in survival analysis as a faster alternative to Markov chain Monte Carlo (MCMC) methods. The details of the Variational Bayes algorithms with and without shared frailty can be found in Xian et al., (2024a) and Xian et al., (2024b) respectively.
Installation
To install survregVB, use the following command:
r
remotes::install_github("https://github.com/chengqianxian/survregVB")
Usage
Loading the Package
r
library(survregVB)
library(survival)
Fitting a Basic Model
``` r
Example using dataset included in the package
data(dnase)
Fit a survival model
fit <- survregVB(formula = Surv(time, infect) ~ trt + fev, data = dnase, alpha0 = 501, omega0 = 500, mu0 = c(4.4, 0.25, 0.04), v0 = 1)
Print summary
summary(fit) ```
Fitting a Model with Frailty
``` r
Using dataset included in the package
data(simulation_frailty)
Fit a survival model with shared frailty
fitfrailty <- survregVB(formula = Surv(Time.15, delta.15) ~ x1 + x2, data = simulationfrailty, alpha0 = 3, omega0 = 2, mu0 = c(0, 0, 0), v0 = 0.1, lambda0 = 3, eta0 = 2, cluster = cluster)
Print summary
summary(fit_frailty) ```
Owner
- Login: chengqianxian
- Kind: user
- Repositories: 1
- Profile: https://github.com/chengqianxian
GitHub Events
Total
- Push event: 11
- Public event: 1
Last Year
- Push event: 11
- Public event: 1
Packages
- Total packages: 1
-
Total downloads:
- cran 154 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 2
- Total maintainers: 1
cran.r-project.org: survregVB
Variational Bayesian Analysis of Survival Data
- Homepage: https://github.com/chengqianxian/survregVB
- Documentation: http://cran.r-project.org/web/packages/survregVB/survregVB.pdf
- License: MIT + file LICENSE | LGPL-2
-
Latest release: 0.0.2
published 12 months ago