Description Usage Arguments Value References Examples
Performs an exact test of the null that a single sample hazard rate is equal to some value.
1 | exact.rate.test(time, status, null = 1, conf.level = 0.95, upper = 100)
|
time |
a numeric vector of survival times. |
status |
a numeric vector of censoring indicators, with 0 = censored and 1 = dead. |
null |
the null hazard rate. Default is 1. |
conf.level |
confidence level of the returned confidence interval. Must be a single number between 0 and 1. |
upper |
upper end point of the interval to be searched for one dimensional
root (zero) finding (passed to |
A list with class "htest"
containing the following
components:
The p-value of the test.
An estimate of the hazard rate.
The null hazard rate.
A confidence interval for the hazard rate.
A character string describing the alternative hypothesis. Currently only "two.sided".
A character string indicating the method employed.
A character string giving the name of the data.
Newman (2001), page 203-4.
1 2 3 4 5 6 | ## Example 10.3
exact.rate.test(time = 10, status = 2, null = 0.4)
## With Breast Cancer Survival data
with(breast.survival, exact.rate.test(time = time, status = status))
with(breast.survival, exact.rate.test(time = time, status = status, null = 0.01))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.