station.test: Test the Stationarity Assumption

Description Usage Arguments Details Value References See Also Examples

Description

Tests the null hypothesis that the incidence process is stationary.

Usage

1
station.test(a, v, delta, digits = 3L)

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.

digits

An integer controlling the number of digits to print.

Details

The stationarity assumption is checked by computing the test statistic and the corresponding p-value. A large p-value suggests strong evidence of stationarity. When the p-value is small (e.g., <0.05), it is likely that the stationarity assumption is violated.

Value

A list containing the following components:

test.statistic

A test statistic.

p.value

A p-value based on two-sided test.

The list is returned as an object of the station.test class. Objects of this class have methods for the function print. The object also contains the following: result, the table output.

References

Addona, V. and Wolfson, D. B. (2006). A formal test for the stationarity of the incidence rate using data from a prevalent cohort study with follow-up. Lifetime data analysis, 12(3), 267-284.

See Also

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

Examples

1
2
3
4
5
6
7
8
# Check the Stationarity Assumption
stest1 <- station.test(ExampleData1$a, ExampleData1$y-ExampleData1$a,
                       ExampleData1$delta)
print(stest1) 			# display the results

stest2 <- station.test(ExampleData2$a, ExampleData2$y-ExampleData2$a,
                       ExampleData2$delta)
print(stest2)   		# display the results

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