View source: R/supportHudgens.R
graphfromIntervals | R Documentation |
Given intervals, construct a graph containing vertices representing these intervals and edges between the vertices if the intervals intersect. See Hudgens (2005).
graphfromIntervals(intervals)
intervals |
A data.frame with 3 columns containing half-open intervals (left open, right closed) and an indicator whether the interval results from a censored transition or truncation: #'
Note that the truncation intervals need to be in the form (N, Inf] with N a numeric value. |
Returns an 'igraph'
object containing the graph with vertices
representing the intervals and edges between the vertices if the intervals
intersect. The vertices will be named accordingly, starting with a 'T' when
representing a truncation interval and 'C' when representing a censoring
interval.
Michael G. Hudgens, On Nonparametric Maximum Likelihood Estimation with Interval Censoring and Left Truncation, Journal of the Royal Statistical Society Series B: Statistical Methodology, Volume 67, Issue 4, September 2005, Pages 573-587, \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1111/j.1467-9868.2005.00516.x")}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.