station.test.plot: Graphical Test of the Stationarity Assumption

Description Usage Arguments Details References See Also Examples

Description

Returns a plot of two Kaplan-Meier curves for forward recurrence time and backward recurrence time.

Usage

1
station.test.plot(a, v, delta)

Arguments

a

A vector of backward recurrence time (i.e., left-truncation time).

v

A vector of forward recurrence time (i.e., failure time minus left-truncation time).

delta

A vector of censoring indicator, 0=censored, 1=uncensored.

Details

The stationarity assumption can be checked by comparing the Kaplan-Meier curves. More overlap of the two survival curves suggests stronger evidence of stationarity.

References

Asgharian, M., Wolfson, D. B., and Zhang, X. (2006). Checking stationarity of the incidence rate using prevalent cohort survival data. Statistics in medicine, 25(10), 1751-1767.

See Also

coxphlb, coxphlb.ftest, coxphlb.phtest, station.test

Examples

1
2
3
4
5
6
# Check the Stationarity Assumption Graphically
station.test.plot(ExampleData1$a, ExampleData1$y-ExampleData1$a,
                  ExampleData1$delta)			# plot curves

station.test.plot(ExampleData2$a, ExampleData2$y-ExampleData2$a,
                  ExampleData2$delta)			# plot curves

CoxPhLb documentation built on May 2, 2019, 12:21 p.m.