Description Usage Arguments Details Value References Examples
A utility function that returns the "maximal intersections" from a set
of censoring intervals in a given type = "interval"
or
type = "interval2"
Surv
object.
1 | maximalint(x, eps = 1e-7)
|
x |
a two-column matrix or data frame giving the left- and
right-endpoints of the censoring intervals or, alternatively, a
|
eps |
a small value used to break ties in maximal intersection endpoints.
Note that a large time scale requires a larger epsilon in order to
ensure that |
Each censoring interval is assumed to exclude its left endpoint. Analogous to Maathuis (2005, Section 2.1) ties between the unique (open) left and (closed) right endpoints among the censoring intervals are broken by subtracting a small value from the right endpoint value before constructing the maximal intersections.
int |
a two-column matrix whose rows give the maximal
intersections (Wong and Yu, 1999) of the censoring intervals
represented in |
ind |
a |
Maathuis, MH (2005) Reduction algorithm for the NPMLE for the distribution function of bivariate interval-censored data. Journal of Computational and Graphical Statistics 14, 352–362.
Wong, GYC. and Yu, Q. (1999) Generalized MLE of a joint distribution function with multivariate interval-censored data. Journal of Multivariate Analysis 69, 155–166.
1 2 3 | s <- with(cosmesis[1:10, ], Surv(left, right, type = "interval2"))
s
maximalint(s)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.