SlideShare a Scribd company logo
1 of 8
Download to read offline
The R package survsim for the simulation of simple and
complex survival data
David Moriña and Albert Navarro
5 de Novembre de 2014, GRASS
Contents
1 Introduction
2 Introduction
3 Overview of the package
2 / 7
Introduction
Introduction
• Compared to the simulation of other types of data, the process of simu-
lating survival data requires certain specific considerations.
• To simulate the (randomly right) censored observations, we need to sim-
ulate a lifetime vector and, independently, a censoring time vector.
• There are various situations which make true survival data much more
complex.
3 / 7
Introduction
Introduction
• Compared to the simulation of other types of data, the process of simu-
lating survival data requires certain specific considerations.
• To simulate the (randomly right) censored observations, we need to sim-
ulate a lifetime vector and, independently, a censoring time vector.
• There are various situations which make true survival data much more
complex.
• The phenomenon of interest could occur more than once in a given
individual (recurrent events).
• We could be interested in the instantaneous analysis of multiple events of
different types.
• We can work with dynamic cohorts in which an individual may be incor-
porated to follow-up after the study has begun, or an individual may be
incorporated to follow-up after being at risk for some time.
• Discontinuous risk intervals or individual heterogeneity (propensity of an
individual to suffer an event due to hidden variables) are other phenom-
ena which involve situations that make simulation even more difficult.
3 / 7
Introduction
Introduction
• Although there is an increasing interest, and need, to apply survival anal-
ysis to data sets with multiple and recurrent events per subject, very few
published articles are available in the literature which make use of the
simulation of complex survival data, one possible reason being a lack of
easily used tools facilitating such simulations.
• Stata has the SURVSIM module for the simulation of complex survival
data, also in a context of non-proportional hazards.
• The analysis of this type of data can be performed in R using the eha
package, which allows fitting models for recurrent and multiple events, as
well as other contexts.
4 / 7
Overview of the package
Recurrent events
Recurrent events
• Recurrent event data refers to situations where the subject can experi-
ence repeated episodes of the same type of event
• There are many examples such as injuries, nosocomial infections, asthma
attacks . . .
• If these phenomena are studied via a cohort, the application of survival
methods would seem appropriate
• During the 1980s, at theoretical level, and during the 1990s and early
21st century in practical terms through development of software, various
methods have been proposed to tackle events of this type, both non-
parametric and parametric
5 / 7
Centre for Research
in Environmental
Epidemiology
Parc de Recerca Biomèdica de Barcelona
Doctor Aiguader, 88
08003 Barcelona (Spain)
Tel. (+34) 93 214 70 00
Fax (+34) 93 214 73 02
info@creal.cat
www.creal.cat
Grup de Recerca d’Amèrica i Àfrica Llatines
Unitat de Bioestadística, Facultat de Medicina
Universitat Autònoma de Barcelona
www.uab.cat

More Related Content

Similar to The R package survsim for the simulation of simple and complex survival data

Session 5_Sampling strategy_Intake Dr Emmanuel.pdf
Session 5_Sampling strategy_Intake Dr Emmanuel.pdfSession 5_Sampling strategy_Intake Dr Emmanuel.pdf
Session 5_Sampling strategy_Intake Dr Emmanuel.pdfmuhirwaSamuel
 
Importance of the neutral category in fuzzy clustering of sentiments
Importance of the neutral category in fuzzy clustering of sentimentsImportance of the neutral category in fuzzy clustering of sentiments
Importance of the neutral category in fuzzy clustering of sentimentsijfls
 
SAMPLING IN RESEARCH METHODOLOGY
SAMPLING IN RESEARCH METHODOLOGYSAMPLING IN RESEARCH METHODOLOGY
SAMPLING IN RESEARCH METHODOLOGYFarha Nisha
 
2013.11.14 Big Data Workshop Adam Ralph - 1st set of slides
2013.11.14 Big Data Workshop Adam Ralph - 1st set of slides2013.11.14 Big Data Workshop Adam Ralph - 1st set of slides
2013.11.14 Big Data Workshop Adam Ralph - 1st set of slidesNUI Galway
 
Introduction to statistics in health care
Introduction to statistics in health care Introduction to statistics in health care
Introduction to statistics in health care Dhasarathi Kumar
 
Unit2 studyguide302
Unit2 studyguide302Unit2 studyguide302
Unit2 studyguide302tashillary
 
Unit3 studyguide302
Unit3 studyguide302Unit3 studyguide302
Unit3 studyguide302tashillary
 
Sampling in Research
Sampling in ResearchSampling in Research
Sampling in ResearchEnzo Engada
 
Learning from Time-to-Event Data from Online Learning Contexts
Learning from Time-to-Event Data from Online Learning Contexts Learning from Time-to-Event Data from Online Learning Contexts
Learning from Time-to-Event Data from Online Learning Contexts Shalin Hai-Jew
 
Causality models
Causality modelsCausality models
Causality modelsQuang Hoang
 
SUITABILITY OF COINTEGRATION TESTS ON DATA STRUCTURE OF DIFFERENT ORDERS
SUITABILITY OF COINTEGRATION TESTS ON DATA STRUCTURE  OF DIFFERENT ORDERSSUITABILITY OF COINTEGRATION TESTS ON DATA STRUCTURE  OF DIFFERENT ORDERS
SUITABILITY OF COINTEGRATION TESTS ON DATA STRUCTURE OF DIFFERENT ORDERSBRNSS Publication Hub
 
Sergio S Statistics
Sergio S StatisticsSergio S Statistics
Sergio S Statisticsteresa_soto
 
A_review_on_outlier_detection_in_time_series_data__BCAM_1.pdf.pdf
A_review_on_outlier_detection_in_time_series_data__BCAM_1.pdf.pdfA_review_on_outlier_detection_in_time_series_data__BCAM_1.pdf.pdf
A_review_on_outlier_detection_in_time_series_data__BCAM_1.pdf.pdfTadiyosHailemichael
 

Similar to The R package survsim for the simulation of simple and complex survival data (20)

Research methodology by hw
 Research methodology by hw Research methodology by hw
Research methodology by hw
 
Panel slides
Panel slidesPanel slides
Panel slides
 
Session 5_Sampling strategy_Intake Dr Emmanuel.pdf
Session 5_Sampling strategy_Intake Dr Emmanuel.pdfSession 5_Sampling strategy_Intake Dr Emmanuel.pdf
Session 5_Sampling strategy_Intake Dr Emmanuel.pdf
 
Importance of the neutral category in fuzzy clustering of sentiments
Importance of the neutral category in fuzzy clustering of sentimentsImportance of the neutral category in fuzzy clustering of sentiments
Importance of the neutral category in fuzzy clustering of sentiments
 
SAMPLING IN RESEARCH METHODOLOGY
SAMPLING IN RESEARCH METHODOLOGYSAMPLING IN RESEARCH METHODOLOGY
SAMPLING IN RESEARCH METHODOLOGY
 
2013.11.14 Big Data Workshop Adam Ralph - 1st set of slides
2013.11.14 Big Data Workshop Adam Ralph - 1st set of slides2013.11.14 Big Data Workshop Adam Ralph - 1st set of slides
2013.11.14 Big Data Workshop Adam Ralph - 1st set of slides
 
Introduction to statistics in health care
Introduction to statistics in health care Introduction to statistics in health care
Introduction to statistics in health care
 
Unit2 studyguide302
Unit2 studyguide302Unit2 studyguide302
Unit2 studyguide302
 
Unit3 studyguide302
Unit3 studyguide302Unit3 studyguide302
Unit3 studyguide302
 
sampling
samplingsampling
sampling
 
43911.ppt
43911.ppt43911.ppt
43911.ppt
 
Research Method
Research MethodResearch Method
Research Method
 
Sampling in Research
Sampling in ResearchSampling in Research
Sampling in Research
 
Learning from Time-to-Event Data from Online Learning Contexts
Learning from Time-to-Event Data from Online Learning Contexts Learning from Time-to-Event Data from Online Learning Contexts
Learning from Time-to-Event Data from Online Learning Contexts
 
Causality models
Causality modelsCausality models
Causality models
 
Art01
Art01Art01
Art01
 
GROUP 20.pptx
GROUP 20.pptxGROUP 20.pptx
GROUP 20.pptx
 
SUITABILITY OF COINTEGRATION TESTS ON DATA STRUCTURE OF DIFFERENT ORDERS
SUITABILITY OF COINTEGRATION TESTS ON DATA STRUCTURE  OF DIFFERENT ORDERSSUITABILITY OF COINTEGRATION TESTS ON DATA STRUCTURE  OF DIFFERENT ORDERS
SUITABILITY OF COINTEGRATION TESTS ON DATA STRUCTURE OF DIFFERENT ORDERS
 
Sergio S Statistics
Sergio S StatisticsSergio S Statistics
Sergio S Statistics
 
A_review_on_outlier_detection_in_time_series_data__BCAM_1.pdf.pdf
A_review_on_outlier_detection_in_time_series_data__BCAM_1.pdf.pdfA_review_on_outlier_detection_in_time_series_data__BCAM_1.pdf.pdf
A_review_on_outlier_detection_in_time_series_data__BCAM_1.pdf.pdf
 

Recently uploaded

Selaginella: features, morphology ,anatomy and reproduction.
Selaginella: features, morphology ,anatomy and reproduction.Selaginella: features, morphology ,anatomy and reproduction.
Selaginella: features, morphology ,anatomy and reproduction.Cherry
 
Call Girls Ahmedabad +917728919243 call me Independent Escort Service
Call Girls Ahmedabad +917728919243 call me Independent Escort ServiceCall Girls Ahmedabad +917728919243 call me Independent Escort Service
Call Girls Ahmedabad +917728919243 call me Independent Escort Serviceshivanisharma5244
 
Gwalior ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Gwalior ESCORT SERVICE❤CALL GIRL
Gwalior ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Gwalior ESCORT SERVICE❤CALL GIRLGwalior ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Gwalior ESCORT SERVICE❤CALL GIRL
Gwalior ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Gwalior ESCORT SERVICE❤CALL GIRLkantirani197
 
Cot curve, melting temperature, unique and repetitive DNA
Cot curve, melting temperature, unique and repetitive DNACot curve, melting temperature, unique and repetitive DNA
Cot curve, melting temperature, unique and repetitive DNACherry
 
COMPOSTING : types of compost, merits and demerits
COMPOSTING : types of compost, merits and demeritsCOMPOSTING : types of compost, merits and demerits
COMPOSTING : types of compost, merits and demeritsCherry
 
Climate Change Impacts on Terrestrial and Aquatic Ecosystems.pptx
Climate Change Impacts on Terrestrial and Aquatic Ecosystems.pptxClimate Change Impacts on Terrestrial and Aquatic Ecosystems.pptx
Climate Change Impacts on Terrestrial and Aquatic Ecosystems.pptxDiariAli
 
Understanding Partial Differential Equations: Types and Solution Methods
Understanding Partial Differential Equations: Types and Solution MethodsUnderstanding Partial Differential Equations: Types and Solution Methods
Understanding Partial Differential Equations: Types and Solution Methodsimroshankoirala
 
POGONATUM : morphology, anatomy, reproduction etc.
POGONATUM : morphology, anatomy, reproduction etc.POGONATUM : morphology, anatomy, reproduction etc.
POGONATUM : morphology, anatomy, reproduction etc.Cherry
 
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune WaterworldsBiogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune WaterworldsSérgio Sacani
 
Factory Acceptance Test( FAT).pptx .
Factory Acceptance Test( FAT).pptx       .Factory Acceptance Test( FAT).pptx       .
Factory Acceptance Test( FAT).pptx .Poonam Aher Patil
 
CYTOGENETIC MAP................ ppt.pptx
CYTOGENETIC MAP................ ppt.pptxCYTOGENETIC MAP................ ppt.pptx
CYTOGENETIC MAP................ ppt.pptxCherry
 
Terpineol and it's characterization pptx
Terpineol and it's characterization pptxTerpineol and it's characterization pptx
Terpineol and it's characterization pptxMuhammadRazzaq31
 
FAIRSpectra - Enabling the FAIRification of Analytical Science
FAIRSpectra - Enabling the FAIRification of Analytical ScienceFAIRSpectra - Enabling the FAIRification of Analytical Science
FAIRSpectra - Enabling the FAIRification of Analytical ScienceAlex Henderson
 
LUNULARIA -features, morphology, anatomy ,reproduction etc.
LUNULARIA -features, morphology, anatomy ,reproduction etc.LUNULARIA -features, morphology, anatomy ,reproduction etc.
LUNULARIA -features, morphology, anatomy ,reproduction etc.Cherry
 
Efficient spin-up of Earth System Models usingsequence acceleration
Efficient spin-up of Earth System Models usingsequence accelerationEfficient spin-up of Earth System Models usingsequence acceleration
Efficient spin-up of Earth System Models usingsequence accelerationSérgio Sacani
 
development of diagnostic enzyme assay to detect leuser virus
development of diagnostic enzyme assay to detect leuser virusdevelopment of diagnostic enzyme assay to detect leuser virus
development of diagnostic enzyme assay to detect leuser virusNazaninKarimi6
 
Digital Dentistry.Digital Dentistryvv.pptx
Digital Dentistry.Digital Dentistryvv.pptxDigital Dentistry.Digital Dentistryvv.pptx
Digital Dentistry.Digital Dentistryvv.pptxMohamedFarag457087
 
The Mariana Trench remarkable geological features on Earth.pptx
The Mariana Trench remarkable geological features on Earth.pptxThe Mariana Trench remarkable geological features on Earth.pptx
The Mariana Trench remarkable geological features on Earth.pptxseri bangash
 
Cyanide resistant respiration pathway.pptx
Cyanide resistant respiration pathway.pptxCyanide resistant respiration pathway.pptx
Cyanide resistant respiration pathway.pptxCherry
 

Recently uploaded (20)

Selaginella: features, morphology ,anatomy and reproduction.
Selaginella: features, morphology ,anatomy and reproduction.Selaginella: features, morphology ,anatomy and reproduction.
Selaginella: features, morphology ,anatomy and reproduction.
 
Call Girls Ahmedabad +917728919243 call me Independent Escort Service
Call Girls Ahmedabad +917728919243 call me Independent Escort ServiceCall Girls Ahmedabad +917728919243 call me Independent Escort Service
Call Girls Ahmedabad +917728919243 call me Independent Escort Service
 
Gwalior ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Gwalior ESCORT SERVICE❤CALL GIRL
Gwalior ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Gwalior ESCORT SERVICE❤CALL GIRLGwalior ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Gwalior ESCORT SERVICE❤CALL GIRL
Gwalior ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Gwalior ESCORT SERVICE❤CALL GIRL
 
Cot curve, melting temperature, unique and repetitive DNA
Cot curve, melting temperature, unique and repetitive DNACot curve, melting temperature, unique and repetitive DNA
Cot curve, melting temperature, unique and repetitive DNA
 
COMPOSTING : types of compost, merits and demerits
COMPOSTING : types of compost, merits and demeritsCOMPOSTING : types of compost, merits and demerits
COMPOSTING : types of compost, merits and demerits
 
Climate Change Impacts on Terrestrial and Aquatic Ecosystems.pptx
Climate Change Impacts on Terrestrial and Aquatic Ecosystems.pptxClimate Change Impacts on Terrestrial and Aquatic Ecosystems.pptx
Climate Change Impacts on Terrestrial and Aquatic Ecosystems.pptx
 
Understanding Partial Differential Equations: Types and Solution Methods
Understanding Partial Differential Equations: Types and Solution MethodsUnderstanding Partial Differential Equations: Types and Solution Methods
Understanding Partial Differential Equations: Types and Solution Methods
 
POGONATUM : morphology, anatomy, reproduction etc.
POGONATUM : morphology, anatomy, reproduction etc.POGONATUM : morphology, anatomy, reproduction etc.
POGONATUM : morphology, anatomy, reproduction etc.
 
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune WaterworldsBiogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
 
Factory Acceptance Test( FAT).pptx .
Factory Acceptance Test( FAT).pptx       .Factory Acceptance Test( FAT).pptx       .
Factory Acceptance Test( FAT).pptx .
 
CYTOGENETIC MAP................ ppt.pptx
CYTOGENETIC MAP................ ppt.pptxCYTOGENETIC MAP................ ppt.pptx
CYTOGENETIC MAP................ ppt.pptx
 
Terpineol and it's characterization pptx
Terpineol and it's characterization pptxTerpineol and it's characterization pptx
Terpineol and it's characterization pptx
 
FAIRSpectra - Enabling the FAIRification of Analytical Science
FAIRSpectra - Enabling the FAIRification of Analytical ScienceFAIRSpectra - Enabling the FAIRification of Analytical Science
FAIRSpectra - Enabling the FAIRification of Analytical Science
 
LUNULARIA -features, morphology, anatomy ,reproduction etc.
LUNULARIA -features, morphology, anatomy ,reproduction etc.LUNULARIA -features, morphology, anatomy ,reproduction etc.
LUNULARIA -features, morphology, anatomy ,reproduction etc.
 
Efficient spin-up of Earth System Models usingsequence acceleration
Efficient spin-up of Earth System Models usingsequence accelerationEfficient spin-up of Earth System Models usingsequence acceleration
Efficient spin-up of Earth System Models usingsequence acceleration
 
development of diagnostic enzyme assay to detect leuser virus
development of diagnostic enzyme assay to detect leuser virusdevelopment of diagnostic enzyme assay to detect leuser virus
development of diagnostic enzyme assay to detect leuser virus
 
Digital Dentistry.Digital Dentistryvv.pptx
Digital Dentistry.Digital Dentistryvv.pptxDigital Dentistry.Digital Dentistryvv.pptx
Digital Dentistry.Digital Dentistryvv.pptx
 
The Mariana Trench remarkable geological features on Earth.pptx
The Mariana Trench remarkable geological features on Earth.pptxThe Mariana Trench remarkable geological features on Earth.pptx
The Mariana Trench remarkable geological features on Earth.pptx
 
Cyanide resistant respiration pathway.pptx
Cyanide resistant respiration pathway.pptxCyanide resistant respiration pathway.pptx
Cyanide resistant respiration pathway.pptx
 
ABHISHEK ANTIBIOTICS PPT MICROBIOLOGY // USES OF ANTIOBIOTICS TYPES OF ANTIB...
ABHISHEK ANTIBIOTICS PPT MICROBIOLOGY  // USES OF ANTIOBIOTICS TYPES OF ANTIB...ABHISHEK ANTIBIOTICS PPT MICROBIOLOGY  // USES OF ANTIOBIOTICS TYPES OF ANTIB...
ABHISHEK ANTIBIOTICS PPT MICROBIOLOGY // USES OF ANTIOBIOTICS TYPES OF ANTIB...
 

The R package survsim for the simulation of simple and complex survival data

  • 1. The R package survsim for the simulation of simple and complex survival data David Moriña and Albert Navarro 5 de Novembre de 2014, GRASS
  • 2. Contents 1 Introduction 2 Introduction 3 Overview of the package 2 / 7
  • 3. Introduction Introduction • Compared to the simulation of other types of data, the process of simu- lating survival data requires certain specific considerations. • To simulate the (randomly right) censored observations, we need to sim- ulate a lifetime vector and, independently, a censoring time vector. • There are various situations which make true survival data much more complex. 3 / 7
  • 4. Introduction Introduction • Compared to the simulation of other types of data, the process of simu- lating survival data requires certain specific considerations. • To simulate the (randomly right) censored observations, we need to sim- ulate a lifetime vector and, independently, a censoring time vector. • There are various situations which make true survival data much more complex. • The phenomenon of interest could occur more than once in a given individual (recurrent events). • We could be interested in the instantaneous analysis of multiple events of different types. • We can work with dynamic cohorts in which an individual may be incor- porated to follow-up after the study has begun, or an individual may be incorporated to follow-up after being at risk for some time. • Discontinuous risk intervals or individual heterogeneity (propensity of an individual to suffer an event due to hidden variables) are other phenom- ena which involve situations that make simulation even more difficult. 3 / 7
  • 5. Introduction Introduction • Although there is an increasing interest, and need, to apply survival anal- ysis to data sets with multiple and recurrent events per subject, very few published articles are available in the literature which make use of the simulation of complex survival data, one possible reason being a lack of easily used tools facilitating such simulations. • Stata has the SURVSIM module for the simulation of complex survival data, also in a context of non-proportional hazards. • The analysis of this type of data can be performed in R using the eha package, which allows fitting models for recurrent and multiple events, as well as other contexts. 4 / 7
  • 6. Overview of the package Recurrent events Recurrent events • Recurrent event data refers to situations where the subject can experi- ence repeated episodes of the same type of event • There are many examples such as injuries, nosocomial infections, asthma attacks . . . • If these phenomena are studied via a cohort, the application of survival methods would seem appropriate • During the 1980s, at theoretical level, and during the 1990s and early 21st century in practical terms through development of software, various methods have been proposed to tackle events of this type, both non- parametric and parametric 5 / 7
  • 7.
  • 8. Centre for Research in Environmental Epidemiology Parc de Recerca Biomèdica de Barcelona Doctor Aiguader, 88 08003 Barcelona (Spain) Tel. (+34) 93 214 70 00 Fax (+34) 93 214 73 02 info@creal.cat www.creal.cat Grup de Recerca d’Amèrica i Àfrica Llatines Unitat de Bioestadística, Facultat de Medicina Universitat Autònoma de Barcelona www.uab.cat