Package: survstan 0.1.0

survstan: Fitting Survival Regression Models via 'Stan'

Parametric survival regression models under the maximum likelihood approach via 'Stan'. Implemented regression models include accelerated failure time (AFT) models, proportional hazards (PH) models, proportional odds (PO) models, accelerated hazard (AH) models, Yang and Prentice (YP) models, and extended hazard (EH) models. Available baseline survival distributions include exponential, Weibull, log-normal, log-logistic, gamma, generalized gamma, rayleigh, Gompertz and fatigue (Birnbaum-Saunders) distributions. The baseline survival distribution can be further modeled using Bernstein polynomails' approximation of the baseline hazard function. References: Lawless (2002) <ISBN:9780471372158>; Bennett (1982) <doi:10.1002/sim.4780020223>; Chen and Wang(2000) <doi:10.1080/01621459.2000.10474236>; Demarqui and Mayrink (2021) <doi:10.1214/20-BJPS471>.

Authors:Fabio Demarqui [aut, cre, cph], Andrew Johnson [ctb]

survstan_0.1.0.tar.gz
survstan_0.1.0.zip(r-4.5)survstan_0.1.0.zip(r-4.4)survstan_0.1.0.zip(r-4.3)
survstan_0.1.0.tgz(r-4.4-x86_64)survstan_0.1.0.tgz(r-4.4-arm64)survstan_0.1.0.tgz(r-4.3-x86_64)survstan_0.1.0.tgz(r-4.3-arm64)
survstan_0.1.0.tar.gz(r-4.5-noble)survstan_0.1.0.tar.gz(r-4.4-noble)
survstan.pdf |survstan.html
survstan/json (API)
NEWS

# Install 'survstan' in R:
install.packages('survstan', repos = c('https://fndemarqui.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/fndemarqui/survstan/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • gastric - Gastric cancer data set
  • ipass - IRESSA Pan-Asia Study (IPASS) data set

On CRAN:

33 exports 2 stars 1.97 score 77 dependencies 62 scripts 225 downloads

Last updated 22 days agofrom:c1572ed0a9. Checks:OK: 1 NOTE: 8. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 27 2024
R-4.5-win-x86_64NOTEAug 27 2024
R-4.5-linux-x86_64NOTEAug 27 2024
R-4.4-win-x86_64NOTEAug 27 2024
R-4.4-mac-x86_64NOTEAug 27 2024
R-4.4-mac-aarch64NOTEAug 27 2024
R-4.3-win-x86_64NOTEAug 27 2024
R-4.3-mac-x86_64NOTEAug 27 2024
R-4.3-mac-aarch64NOTEAug 27 2024

Exports:aftregahregbernsteincross_timedggprenticedggstacydgompertzdpexpehregestimatesggresidualshpexpHpexppggprenticepggstacypgompertzphregpiecewiseporegppexpqggprenticeqggstacyqgompertzqpexprank_modelsrggprenticerggstacyrgompertzrpexpsetidytime_gridypreg

Dependencies:abindactuarbackportsBHbroomcallrcheckmateclicodetoolscolorspacecpp11descdigestdistributionaldoFuturedplyrexpintextraDistrfansifarverforeachfuturefuture.applygenericsggplot2globalsgluegridExtragtableinlineisobanditeratorslabelinglatticelifecyclelistenvloomagrittrMASSMatrixmatrixStatsmgcvmunsellnlmenumDerivparallellypillarpkgbuildpkgconfigposteriorprocessxpspurrrQuickJSRR6rbibutilsRColorBrewerRcppRcppEigenRcppParallelRdpackrlangrstanrstantoolsscalesStanHeadersstringistringrsurvivaltensorAtibbletidyrtidyselectutf8vctrsviridisLitewithr

Introduction to the R package survstan

Rendered fromsurvstan.Rmdusingknitr::rmarkdownon Aug 27 2024.

Last update: 2024-08-27
Started: 2023-05-01

Likelihood ratio tests with the survstan package

Rendered fromLRT.Rmdusingknitr::rmarkdownon Aug 27 2024.

Last update: 2024-03-20
Started: 2023-08-09

Readme and manuals

Help Manual

Help pageTopics
The 'survstan' package.survstan-package survstan
Fitting Accelerated Failure Time Modelsaftreg
Fitting Accelerated Hazard Modelsahreg
Akaike information criterionAIC.survstan
anova method for survstan modelsanova.survstan
Bernstein polynomialbernstein
Estimated regression coefficientscoef.survstan
Confidence intervals for the regression coefficientsconfint.survstan
Generic S3 method cross_timecross_time
Computes the crossing survival timescross_time.survstan
Fitting Extended Hazard Modelsehreg
Support Functions for 'emmeans'emmeans-survstan-helpers recover_data.ehreg recover_data.survstan recover_data.ypreg
Parameters estimates of a survstan modelestimates
Extract AIC from a Fitted ModelextractAIC.survstan
Gastric cancer data setgastric
The Generalized Gamma Distribution (Prentice's alternative parametrization)dggprentice ggprentice pggprentice qggprentice rggprentice
Generic S3 method ggresidualsggresiduals
ggresiduals method for survstan modelsggresiduals.survstan
The Generalized Gamma Distribution (Stacy's original parametrization)dggstacy ggstacy pggstacy qggstacy rggstacy
The Gompertz Distributiondgompertz Gompertz gompertz Hgompertz hgompertz pgompertz qgompertz rgompertz
IRESSA Pan-Asia Study (IPASS) data setipass
Extract Log-Likelihood from a Fitted ModellogLik.survstan
Model.matrix method for survstan modelsmodel.matrix.survstan
Hazard and cumulative hazard functions of the PE distributionHpexp hpexp pehaz
Probability function, distribution function, quantile function and random generation for the Piecewise Exponential (PE) distribution.dpexp pexp ppexp qpexp rpexp
Fitting Proportional Hazards Modelsphreg
Piecewise baselinepiecewise
Fitting Proportional Odds Modelsporeg
Print the summary.survstan outputprint.summary.survstan
Rank a collection of survstan modelsrank_models
residuals method for survstan modelsresiduals.survstan
Generic S3 method sese
Estimated standard errorsse.survstan
Summary for a survstan objectsummary.survstan
survfit method for survstan modelssurvfit.survstan
Tidy a survstan objecttidy.survstan
Time gridtime_grid
Variance-covariance matrixvcov.survstan
Fitting Yang and Prentice Modelsypreg