Dif.Surv.Rec {newTestSurvRec} | R Documentation |
This function computes statistical difference between two survival curves
Description
p-values of these tests are computed.
Usage
Dif.Surv.Rec(XX, type, alfa, beta,gamma,eta)
Arguments
XX |
Object type recurrent events data |
type |
"LRrec","Grec","TWrec","PPrec","PMrec","FHrec","CMrec","Mrec","all" |
alfa |
The appropriate choice, see |
beta |
The appropriate choice, see |
gamma |
The appropriate choice, see |
eta |
The appropriate choice, see |
Details
This function contains tests to compare survival curves with recurrent events. The curves are estimated using Pena-Strawderman-Hollander or Wang-Chang estimator. GPLE or PSH model: Pena et al. (2001) defined an estimator of the survival function to recurrent events or Kaplan-Meier estimator GPLE. They used two counting processes N and Y. The PSH estimator was defined as,
\hat{S}(z) =\prod_{t\leq\,z}\left[1-\frac{\Delta\,N\left(s,z\right)}{Y\left(s,z\right)}\right]
The authors considered two time scales: one related to calendar time (S) and other related to inter occurrences time (T). So, the counting process N(s, z) represents the number of observed events in the calendar period [0,s]
with t\leq\,z
and Y(s, z) represents the number of observed events in the period [0,s]
with t\geq\,z
. The product-limit estimator was developed by Pena, Strawderman and Hollander, called PSH. This estimator is useful when the inter occurrence times are assumed to
represents IID sample from some underlying distribution F. The GPLE estimator is defined as: A fundamental assumption of this approach is that individuals have been previously and properly classified in groups according to a stratification variable denote by r. Thus, the estimator of the survival curve by each group is defined as,
\hat{S}_{r}(z) =\prod_{t\leq\,z}\left[1-\frac{\Delta\,N\left(s,z;r\right)}{Y\left(s,z;r\right)}\right]\!\nabla\:r\:=\!1,2.
WC model: Wang-Chang (1999) proposed an estimator of the common marginal survivor function in the case where within-unit inter occurrences times are correlated. The correlation structure considered by Wang and Chang (1999) is quite general and contains, the cases particular, both the i.i.d. and multiplicative frailty model as special cases. The WC estimator was defined using two new processes,d^{*}
and R^{*}
.
\hat{S}(t) =\prod_{T\leq\,t}\left[1-\frac{d^{*}\left(T_{k}\right)}{R^{*}\left(T_{k}\right)}\right]
The authors try take into account in the definition of N
and Y
that an individual may have more than one event. In fact, this estimator has the same way as the GPLE estimator but using these two different processes. the index d^{*}
represents the sum of the proportion of individuals of the inter occurrences times which are equal to t
when there is at least one event. On the other hand, R^{*}
represents an average of the individuals that are at risk time t
, where for each individual the average is the number of failures or censored times at least equal to t
. This average is done regarding the number of events that there are to each individual and in case K
is 0 is divided by 1. For definition more formal see Martinez (2009) and Pena et. al (2001). The WC estimator of S eliminates the bias for the product-limit estimator developed by PSH (2001) when the inter occurrences times are correlated within units.However, when applied to i.i.d. inter occurrence times, this estimator is not expected to perform as well as the PSH estimator, especially with regard to efficiency.
Value
# Dif.Surv.Rec(TBCplapyr,"all",0,0,0,0). Values returned
Nomb.Est | Chi.square | p.value |
LRrec | 0.3052411 | 0.5806152 |
Grec | 1.4448446 | 0.2293570 |
TWrec | 0.9551746 | 0.3284056 |
PPrec | 1.1322772 | 0.2872901 |
PMrec | 1.1430319 | 0.2850126 |
PPrrec | 1.1834042 | 0.2766641 |
HFrec | 0.3052411 | 0.5806152 |
CMrec | 0.3052411 | 0.5806152 |
Mrec | 1.5298763 | 0.2161310 |
Author(s)
Dr. Carlos M. Martinez M., <cmmm7031@gmail.com>
References
Martinez C., Ramirez, G., Vasquez M. (2009).Pruebas no parametricas para comparar curvas de supervivencia de dos grupos que experimentan eventos recurrentes. Propuestas. Revista Ingenieria U.C.,Vol 16, 3, 45-55.//Martinez, C. (2009). Generalizacion de algunas pruebas clasicas de comparacion de curvas de supervivencia al caso de eventos de naturaleza recurrente. Tesis doctoral. Universidad Central de Venezuela (UCV). Caracas-Venezuela.
See Also
Plot.Event.Rec, Plot.Surv.Rec, Print.Summary
Examples
data(TBCplapyr)
#Return the p-values of the all tests
Dif.Surv.Rec(TBCplapyr,"all",0,0,0,0)
#Return the p-value of the LRrec test
Dif.Surv.Rec(TBCplapyr)
#Return the p-value of the Grec test
Dif.Surv.Rec(TBCplapyr,"Grec")
#Return the p-values of the CMrec tests
#The CMrec test with this parameters generates LRrec test
Dif.Surv.Rec(TBCplapyr,"all",0,0,0,0)
#The CMrec test with this parameters generates Grec test
Dif.Surv.Rec(TBCplapyr,"all",0,0,1,0)
#The CMrec test with this parameters generates TWrec test
Dif.Surv.Rec(TBCplapyr,"all",0,0,0.5,0)