avg.haz: Calcualte the average hazard ratios

Description Usage Arguments Author(s) References Examples

View source: R/Hasegawa2014.R

Description

Calculate the average hazard ratios according to Kalbfleisch and Prentice (1981) or in the paper Hasegawa (2014) for piece-wise exponential survival functions (only one change point eps).

Usage

1
avg.haz(theta, eps, lambda, p = 1/2)

Arguments

theta

hazard ratio after eps between the treatment and the control group, assuming that the hazard rato is 1 before eps.

eps

The change point, before which, the hazard ratio is 1, and after which, the hazard ratio is theta.

lambda

The constant hazard for the control arm.

p

Treatment assignment probability.

Author(s)

Lili Wang

References

Hasegawa, T. (2014). Sample size determination for the weighted log‐rank test with the Fleming–Harrington class of weights in cancer vaccine studies. Pharmaceutical statistics, 13(2), 128-135.

Examples

1
2
3
4
5
6
7
8
## Not run: 
# test
lambda=log(2)/6
theta=0.7
eps=2
avg.haz(theta,eps,lambda)

## End(Not run)

lilywang1988/GSMC documentation built on March 9, 2021, 5:25 p.m.