Package: rsurv 0.0.3

rsurv: Random Generation of Survival Data
Random generation of survival data from a wide range of regression models, including accelerated failure time (AFT), proportional hazards (PH), proportional odds (PO), accelerated hazard (AH), Yang and Prentice (YP), and extended hazard (EH) models. The package 'rsurv' also stands out by its ability to generate survival data from an unlimited number of baseline distributions provided that an implementation of the quantile function of the chosen baseline distribution is available in R. Another nice feature of the package 'rsurv' lies in the fact that linear predictors are specified via a formula-based approach, facilitating the inclusion of categorical variables and interaction terms. The functions implemented in the package 'rsurv' can also be employed to simulate survival data with more complex structures, such as survival data with different types of censoring mechanisms, left-, right-, and double-truncated survival data, survival data with cure fraction, survival data with random effects (frailties), multivariate survival data, and competing risks survival data. Details about the R package 'rsurv' can be found in Demarqui (2024) <doi:10.48550/arXiv.2406.01750>.
Authors:
rsurv_0.0.3.tar.gz
rsurv_0.0.3.zip(r-4.7)rsurv_0.0.3.zip(r-4.6)rsurv_0.0.3.zip(r-4.5)
rsurv_0.0.3.tgz(r-4.6-any)rsurv_0.0.3.tgz(r-4.5-any)
rsurv_0.0.3.tar.gz(r-4.7-any)rsurv_0.0.3.tar.gz(r-4.6-any)
rsurv_0.0.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
rsurv/json (API)
NEWS
| # Install 'rsurv' in R: |
| install.packages('rsurv', repos = c('https://fndemarqui.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/fndemarqui/rsurv/issues
Pkgdown/docs site:https://fndemarqui.github.io
Last updated from:78e54546de. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 282 | ||
| source / vignettes | OK | 284 | ||
| linux-release-x86_64 | OK | 241 | ||
| macos-release-arm64 | OK | 163 | ||
| macos-oldrel-arm64 | OK | 140 | ||
| windows-devel | OK | 195 | ||
| windows-release | OK | 256 | ||
| windows-oldrel | OK | 189 | ||
| wasm-release | OK | 140 |
Exports:bernoullidfatiguedloglogisticdrayleighinv_pgflpnegbinpfatigueploglogisticprayleighqfatigueqloglogisticqrayleighraftregrahregrehregrfatiguerfrailtyrintervalrloglogisticrphregrporegrrayleighrypreg
Dependencies:abindbackportsbellregBHbroomcallrcheckmateclicpp11descdistributionaldplyremmeansestimabilityextraDistrfarverFormulagenericsggplot2gluegridExtragtableinlineisobandlabelingLambertWlamWlifecycleloomagicmagrittrMASSmatrixStatsmvtnormnumbersnumDerivpillarpkgbuildpkgconfigplyrposteriorprocessxpspurrrQuickJSRR6rbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRcppParallelRdpackreshape2rlangrstanrstantoolsS7scalesstabledistStanHeadersstringistringrtensorAtibbletidyrtidyselectutf8vctrsviridisLitewithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| The 'rsurv' package | rsurv-package rsurv |
| Implemented link functions for the mixture cure rate model | bernoulli |
| The Birnbaum-Saunders (Fatigue Life) Distribution | dfatigue fatigue pfatigue qfatigue rfatigue |
| Inverse of the probability generating function | inv_pgf |
| The Log-Logistic Distribution | dloglogistic loglogistic ploglogistic qloglogistic rloglogistic |
| Linear predictors | lp |
| Implemented link functions for the promotion time cure rate model with negative binomial distribution | negbin |
| Random generation from accelerated failure time models | raftreg |
| Random generation from accelerated hazard models | rahreg |
| The Rayleigh Distribution | drayleigh prayleigh qrayleigh rayleigh rrayleigh |
| Random generation from extended hazard models | rehreg |
| Frailties random generation | rfrailty |
| Random generation of type I and type II interval censored survival data | rinterval |
| Random generation from proportional hazards models | rphreg |
| Random generation from proportional odds models | rporeg |
| Random generation from Yang and Prentice models | rypreg |
