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
Last synced: 9 months ago · JSON representation

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
Created over 1 year ago · Last pushed 12 months ago
Metadata Files
Readme License

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) ```

<!-- badges: start --> R-CMD-check <!-- badges: end -->

Owner

  • Login: chengqianxian
  • Kind: user

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

  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 154 Last month
Rankings
Dependent packages count: 26.4%
Forks count: 29.0%
Dependent repos count: 32.5%
Stargazers count: 37.3%
Average: 42.4%
Downloads: 86.7%
Maintainers (1)
Last synced: 9 months ago