Skip to content

YPmodel

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

v1.4 · Oct 19, 2020 · GPL (>= 3)

Description

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.

Downloads

CRAN

194

Last 30 days

22496th

551

Last 90 days

3.1K

Last year

Trend: +19.8% (30d vs prior 30d)

r2u CRAN

9

Last 30 days

26

Last 90 days

107

Last year

Trend: -43.8% (30d vs prior 30d)

autoCRAN

3

Last 7 days

16

Last 30 days

1

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

2 NOTE
11 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang NOTE
r-devel-linux-x86_64-debian-gcc NOTE
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (2 non-OK)
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Junlong Sun <junlong.sun@gmail.com>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: c(person(given = "Junlong",
                      family = "Sun",
                      role = c("aut", "cre"),
                      email = "junlong.sun@gmail.com"),
               person(given = "Song",
                      family = "Yang",
                      role = "aut"))
as necessary.

Package CITATION file contains call(s) to old-style personList() or
as.personList().  Please use c() on person objects instead.
Package CITATION file contains call(s) to old-style citEntry().  Please
use bibentry() instead.

Found the following (possibly) invalid URLs:
  URL: http: //cran.r-project.org/
    From: inst/doc/read_me_first.pdf
    Message: Invalid URL: missing authority part
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Junlong Sun <junlong.sun@gmail.com>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: c(person(given = "Junlong",
                      family = "Sun",
                      role = c("aut", "cre"),
                      email = "junlong.sun@gmail.com"),
               person(given = "Song",
                      family = "Yang",
                      role = "aut"))
as necessary.

Package CITATION file contains call(s) to old-style personList() or
as.personList().  Please use c() on person objects instead.
Package CITATION file contains call(s) to old-style citEntry().  Please
use bibentry() instead.

Found the following (possibly) invalid URLs:
  URL: http: //cran.r-project.org/
    From: inst/doc/read_me_first.pdf
    Message: Invalid URL: missing authority part

Check History

NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Junlong Sun <junlong.sun@gmail.com>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: c(person(given = "Junlong",
                      family = "Sun",
                      role = c("aut", "cre"),
             
...[truncated]...
TION file contains call(s) to old-style citEntry().  Please
use bibentry() instead.

Found the following (possibly) invalid URLs:
  URL: http: //cran.r-project.org/
    From: inst/doc/read_me_first.pdf
    Message: Invalid URL: missing authority part
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Junlong Sun <junlong.sun@gmail.com>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: c(person(given = "Junlong",
                      family = "Sun",
                      role = c("aut", "cre"),
             
...[truncated]...
TION file contains call(s) to old-style citEntry().  Please
use bibentry() instead.

Found the following (possibly) invalid URLs:
  URL: http: //cran.r-project.org/
    From: inst/doc/read_me_first.pdf
    Message: Invalid URL: missing authority part

Version History

6 tracked
new 1.4 Mar 10, 2026
updated 1.4 ← 1.3 diff Oct 19, 2020
updated 1.3 ← 1.2 diff Nov 8, 2015
updated 1.2 ← 1.1 diff Sep 21, 2015
updated 1.1 ← 1.0 diff Feb 16, 2014
new 1.0 Jul 10, 2013