survobj

Objectes to simulate survival times

https://github.com/johnaponte/survobj

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 (9.1%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Objectes to simulate survival times

Basic Info
Statistics
  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • Open Issues: 1
  • Releases: 3
Created about 4 years ago · Last pushed almost 2 years ago
Metadata Files
Readme Changelog License

README.md

Introduction to the survobj Package

by John Aponte

Introduction

This package defines a set of classes that encapsulate survival distributions

The objects of the class SURVIVAL encapsulate distributions of survival times. Each class has its own set of parameters but once the SURVIVAL object is defined, they have access to the same functions to calculate:

  • survival time function: sfx(),

  • hazard time function: hfx(),

  • cumulative hazard function: Cum_Hfx()

  • the inverse of the cumulative hazard function: invCum_Hfx().

  • generate random survival times: rsurv()

  • generate random survival times under proportional hazard ratio: rsurvhr().

  • generate random survival times under accelerated failure : rsuvrvaft()

  • generate random survival times under accelerate hazard: rsurvah()

There are several functions to plot the distributions

  • generic S3: plot.SURVIVAL()

  • plot_survival(): to plot the functions

  • ggplot_survival_random(): to ggplot random draws from the distribution

  • ggplot_survival_hr(): to ggplot random draws from the distribution using hazard ratio

  • ggplot_survival_aft(): to ggplot random draws from the distribution using accelerated time failure

  • ggplot_survival_ah(): to ggplot random draws from the distribution using accelerated hazard

  • compare_survival(): to graphically compare the functions of two SURVIVAL objects

Distributions

The current factories are implemented:

  • s_exponential(): for Exponential distributions

  • s_weibull(): for Weibull distributions

  • s_gompertz(): for Gompertz distributions

  • s_piecewise(): for Piecewise exponential distributions

  • s_loglogistic(): for Log Logistic distributions

  • s_lognormal(): for Log Normal distributions

See the vignettes for examples on the use on simulation of survival data.

Installation

To install the development version of this package from github use:

devtools::install_github("johnaponte/survobj", build_manual = T, build_vignettes = T)

For more information:

https://johnaponte.github.io/survobj/

survobj website

Owner

  • Login: johnaponte
  • Kind: user

GitHub Events

Total
Last Year

Packages

  • Total packages: 1
  • Total downloads:
    • cran 211 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 5
  • Total maintainers: 1
cran.r-project.org: survobj

Objects to Simulate Survival Times

  • Versions: 5
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 211 Last month
Rankings
Forks count: 27.8%
Dependent packages count: 28.6%
Stargazers count: 34.5%
Dependent repos count: 36.8%
Average: 42.7%
Downloads: 86.0%
Maintainers (1)
Last synced: 10 months ago