getc: Basic functions

Description Usage Arguments Details Value Author(s)

View source: R/Hasegawa2016.R

Description

Some basic functions for information prediction.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
getc(theta, lambda, eps)

uv(e, k, lambda, R, t.star)

v(e, k, lambda)

u(e, k, lambda, R, t.star)

h1(k1, k2, lambda, theta, eps, R, t.star)

h0(k1, k2, lambda, theta, eps, R, t.star)

h.tilde(m, lambda, theta, eps, R, p, t.star)

Arguments

theta

Hazard ratio after the change point (before the change point HR should be 1).

lambda

Event hazard for the control arm.

eps

Change point.

e

Some convenience parameter to control the change point, which is usually set to be eps or tau

k, k1, k2, m

Parameters to control the exponential power of the survival functions (the control arm for the null hypothesis or the weighted sum of two arms for the alternative hypotheiss).

R

End of the accrual period.

t.star

Time point we pause the study to check the cumulative results.

p

Treatment assignment probability.

Details

To prepare the values for the prediction of information values. The control arm is following an exponential with rate lambda, the treatment arm is piece-wise exponential with hazard ratio with respect to the control arm to be 1 before the changing point eps, and theta after the change point.

Value

getc returns the \exp(-λ*ε*(1-θ)) which is a multiplier for the survival and hazard of the treatment arm after the change point eps.

Author(s)

Lili Wang


lilywang1988/IAfrac documentation built on March 11, 2021, 11:53 a.m.