Package: YPmodel 1.4

YPmodel: The Short-Term and Long-Term Hazard Ratio Model for Survival Data

Inference procedures accommodate a flexible range of hazard ratio patterns with a two-sample semi-parametric model. This model contains the proportional hazards model and the proportional odds model as sub-models, and accommodates non-proportional hazards situations to the extreme of having crossing hazards and crossing survivor functions. Overall, this package has four major functions: 1) the parameter estimation, namely short-term and long-term hazard ratio parameters; 2) 95 percent and 90 percent point-wise confidence intervals and simultaneous confidence bands for the hazard ratio function; 3) p-value of the adaptive weighted log-rank test; 4) p-values of two lack-of-fit tests for the model. See the included "read_me_first.pdf" for brief instructions. In this version (1.1), there is no need to sort the data before applying this package.

Authors:Junlong Sun and Song Yang

YPmodel_1.4.tar.gz
YPmodel_1.4.zip(r-4.5)YPmodel_1.4.zip(r-4.4)YPmodel_1.4.zip(r-4.3)
YPmodel_1.4.tgz(r-4.4-any)YPmodel_1.4.tgz(r-4.3-any)
YPmodel_1.4.tar.gz(r-4.5-noble)YPmodel_1.4.tar.gz(r-4.4-noble)
YPmodel_1.4.tgz(r-4.4-emscripten)YPmodel_1.4.tgz(r-4.3-emscripten)
YPmodel.pdf |YPmodel.html
YPmodel/json (API)

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

Peer review:

Bug tracker:https://github.com/junlongsun/ypmodel/issues

Datasets:
  • gastric - Data from Gastrointestinal Tumor Study Group

On CRAN:

2.26 score 18 scripts 162 downloads 41 exports 0 dependencies

Last updated 4 years agofrom:ce7f466103. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 25 2024
R-4.5-winOKOct 25 2024
R-4.5-linuxOKOct 25 2024
R-4.4-winOKOct 25 2024
R-4.4-macOKOct 25 2024
R-4.3-winOKOct 25 2024
R-4.3-macOKOct 25 2024

Exports:fun.adlgrkfun.classCheckfun.cumsumfun.errorMessagefun.flipudfun.generateParametersfun.hazardRationEstimationfun.hcvxitr1fun.internalParametersfun.martintfun.newBestfun.ntitr0fun.oldp2fun.Rjudgefun.survffun.variancefun.YPmodelOriginalfun.zeroORoneplot.YPmodelplot.YPmodel.estimateplot.YPmodel.IntervalBandsplot.YPmodel.lackfittestplot.YPmodel.martintplot.YPmodel.survfplot.YPmodel.survivorprint.YPmodelsummary.YPmodelsummary.YPmodel.adlgrksummary.YPmodel.estimatesummary.YPmodel.IntervalBandssummary.YPmodel.lackfittestsummary.YPmodel.overallYPmodelYPmodel.adlgrkYPmodel.defaultYPmodel.estimateYPmodel.inputDataYPmodel.IntervalBandsYPmodel.lackfittestYPmodel.setParameterYPmodel.setRandom

Dependencies:

Readme and manuals

Help Manual

Help pageTopics
The short-term and long-term hazard ratio model for survival dataYPmodel-package
Data from Gastrointestinal Tumor Study Groupgastric gastric30
A main function of package of model of short-term and long-term hazard ratio for survival dataplot.YPmodel print.YPmodel summary.YPmodel YPmodel YPmodel.default
Internal functions for Model of short-term and long-term hazard ratio for survival datafun.adlgrk fun.classCheck fun.cumsum fun.errorMessage fun.flipud fun.generateParameters fun.hazardRationEstimation fun.hcvxitr1 fun.internalParameters fun.martint fun.newBest fun.ntitr0 fun.oldp2 fun.Rjudge fun.survf fun.variance fun.YPmodelOriginal fun.zeroORone summary.YPmodel.overall YPmodel-internal YPmodel.inputData YPmodel.setParameter YPmodel.setRandom
Adaptively weighted logrank testsummary.YPmodel.adlgrk YPmodel.adlgrk
YPmodel Estimate Parameters.plot.YPmodel.estimate plot.YPmodel.survivor summary.YPmodel.estimate YPmodel.estimate
Beta confidential intervals & bandsplot.YPmodel.IntervalBands summary.YPmodel.IntervalBands YPmodel.IntervalBands
Martingale residual-based & contrast-based lack-of-fit testsplot.YPmodel.lackfittest plot.YPmodel.martint plot.YPmodel.survf summary.YPmodel.lackfittest YPmodel.lackfittest