EventData
✖
EventData
Details



- EventData augments data with censoring and truncation information.
- The following event specifications can be used for ei:
-
ti no censoring; event happens at tti {ti,∞} right censoring; event happens at some t where ti≤t {-∞,ti} left censoring; event happens at some t where t<ti {ti,min,ti,max} interval censoring; event happens at some t where ti,min<t≤ti,max - The following censoring indicators can be used for cii:
-
0, None {t,t} no censoring 1, Right {t,∞} right censoring -1,Left {-∞,t} left censoring - The following count specifications can be used for cci:
-
{ ni} ni events at ei {ni,ri} ni events and ri right-censored events at ei {ni,ri,li} ni events, ri right-censored events, and li left-censored events at ei - The following event specifications can be used for tri:
-
ti,{ti,∞} left truncation; observable for {-∞,ti} right truncation; observable for {ti,min,ti,max} interval truncation; observable over ti,min≤t≤ti,max - EventData can be used in statistics functions including:
-
Mean,Variance,… descriptive statistics functions EmpiricalDistribution,… nonparametric distribution estimation EstimatedDistribution,… parametric distribution estimation SurvivalModelFit,… functions for survival analysis - Properties of EventData can be obtained by specifying EventData[…]["property"].
- A list of available properties can be obtained using EventData[…]["Properties"].
- EventData has the following properties:
-
"CensoringIndicators" censoring indicators {ci1,…} "CensoredData" censored event intervals in the form {{t1,∞},…} "EmpiricalPDF" event locations and corresponding estimated weights "InputData" input event specification {e1,…} "MetaInformation" list of meta information rules "TruncationIntervals" truncation intervals {tr1,…} "CensoringType" most general type of censoring present "TruncationType" most general type of truncation present
Examples
open allclose allBasic Examples (1)Summary of the most common use cases
Indicate right-censored data values:

https://wolfram.com/xid/0eny3xowy-e67u14

https://wolfram.com/xid/0eny3xowy-x8iqn

Compute some descriptive statistics:

https://wolfram.com/xid/0eny3xowy-rcf6z


https://wolfram.com/xid/0eny3xowy-mz6nwz

Scope (12)Survey of the scope of standard use cases
Basic Uses (5)
Compute descriptive statistics for event data:

https://wolfram.com/xid/0eny3xowy-df2a5v

https://wolfram.com/xid/0eny3xowy-co21so


https://wolfram.com/xid/0eny3xowy-ckyp8g

Fit nonparametric distributions to event data:

https://wolfram.com/xid/0eny3xowy-f7es

https://wolfram.com/xid/0eny3xowy-iwsv9


https://wolfram.com/xid/0eny3xowy-ihmsy

https://wolfram.com/xid/0eny3xowy-fzof5e

Fit parametric distributions to event data:

https://wolfram.com/xid/0eny3xowy-epb0fr

https://wolfram.com/xid/0eny3xowy-nnu1d


https://wolfram.com/xid/0eny3xowy-jumbt

Plot the distribution and the empirical estimate:

https://wolfram.com/xid/0eny3xowy-hhv3lc

https://wolfram.com/xid/0eny3xowy-janqyb

Fit a model using SurvivalModelFit:

https://wolfram.com/xid/0eny3xowy-bf2422

https://wolfram.com/xid/0eny3xowy-dt32e


https://wolfram.com/xid/0eny3xowy-kvp3o
Empirical survival function with confidence bands:

https://wolfram.com/xid/0eny3xowy-0v3tb

Fit a model with covariates using CoxModelFit:

https://wolfram.com/xid/0eny3xowy-jznsj


https://wolfram.com/xid/0eny3xowy-4k54e

https://wolfram.com/xid/0eny3xowy-k018o


https://wolfram.com/xid/0eny3xowy-estl6o

A comparison of the survival rates for the two groups:

https://wolfram.com/xid/0eny3xowy-dmjo4e

Specifying Censoring and Truncation (7)
Specify right censoring in a number of ways:

https://wolfram.com/xid/0eny3xowy-n2p70k
The objects all represent the same four observations where the third is right censored:

https://wolfram.com/xid/0eny3xowy-en0xs


https://wolfram.com/xid/0eny3xowy-c23rhk


https://wolfram.com/xid/0eny3xowy-dyff4y
The objects all represent the same four observations where the third is left censored:

https://wolfram.com/xid/0eny3xowy-cax4ey


https://wolfram.com/xid/0eny3xowy-bylvax


https://wolfram.com/xid/0eny3xowy-g201kh
The object represents four observations where the third is interval censored:

https://wolfram.com/xid/0eny3xowy-zj67b

Use the count specifications to indicate multiple equivalent observations:

https://wolfram.com/xid/0eny3xowy-bfk602
The objects each represent the same nine observations:

https://wolfram.com/xid/0eny3xowy-80mtu


https://wolfram.com/xid/0eny3xowy-d5himb


https://wolfram.com/xid/0eny3xowy-lm4xg4
The objects are equivalent representations of left-truncated, non-censored data:

https://wolfram.com/xid/0eny3xowy-nc671j


https://wolfram.com/xid/0eny3xowy-njq2k4


https://wolfram.com/xid/0eny3xowy-ept3d4
The object represents right-truncated, non-censored data:

https://wolfram.com/xid/0eny3xowy-gkjgrk

Data can be both censored and truncated:

https://wolfram.com/xid/0eny3xowy-bro9f7
The object represents right-censored, left-truncated data:

https://wolfram.com/xid/0eny3xowy-cjvye

Applications (1)Sample problems that can be solved with this function
Mark right censoring on a plot of an estimated survival function:

https://wolfram.com/xid/0eny3xowy-de4zrl
The estimated survival function:

https://wolfram.com/xid/0eny3xowy-l3m4xf

https://wolfram.com/xid/0eny3xowy-hx2q8x


https://wolfram.com/xid/0eny3xowy-gj74vu
Show the censoring markers with the plot of the estimated survival:

https://wolfram.com/xid/0eny3xowy-gdkxhx

Properties & Relations (1)Properties of the function, and connections to other functions
Descriptive statistics are based on the underlying SurvivalDistribution:

https://wolfram.com/xid/0eny3xowy-ilgr9s


https://wolfram.com/xid/0eny3xowy-c3drg3

https://wolfram.com/xid/0eny3xowy-lo2bhz

Sample estimates are given when they differ from population estimates:

https://wolfram.com/xid/0eny3xowy-pkui69


https://wolfram.com/xid/0eny3xowy-9rugx

Wolfram Research (2012), EventData, Wolfram Language function, https://reference.wolfram.com/language/ref/EventData.html.
Text
Wolfram Research (2012), EventData, Wolfram Language function, https://reference.wolfram.com/language/ref/EventData.html.
Wolfram Research (2012), EventData, Wolfram Language function, https://reference.wolfram.com/language/ref/EventData.html.
CMS
Wolfram Language. 2012. "EventData." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/EventData.html.
Wolfram Language. 2012. "EventData." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/EventData.html.
APA
Wolfram Language. (2012). EventData. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/EventData.html
Wolfram Language. (2012). EventData. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/EventData.html
BibTeX
@misc{reference.wolfram_2025_eventdata, author="Wolfram Research", title="{EventData}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/EventData.html}", note=[Accessed: 23-May-2025
]}
BibLaTeX
@online{reference.wolfram_2025_eventdata, organization={Wolfram Research}, title={EventData}, year={2012}, url={https://reference.wolfram.com/language/ref/EventData.html}, note=[Accessed: 23-May-2025
]}