ABOUT THIS BOOK TABLE OF CONTENTS DATA SETS R CODE PURCHASE CONTACT

R Code for Chapter 2

2.5 Simulation of multistate processes    R code


R Code for Appendix A

A.2.3 Dataframe construction with the mstate package    R code

A.4.1 Timeline plots: Use event.chart function to create Figure A.2    R code    Data

A.4.2 Lexis Diagrams: Use Lexis function to create Figure A.3    R code

A.5 Drawing multistate diagrams    R code using Epi R package    LaTeX code using tikZ package


R Code for Appendix B

B.1.1 Intensities featuring smooth time trends    R code

B.1.2 Processes with piecewise-constant intensities    R code

B.2 Simulating multistate processes under intermittent inspection    R code    PDF file


R Code for Appendix C

(Datasets are unable due to confidentiality agreement with the research groups)

C.1 Illustrative analysis of diabetic retinopathy    R code

C.2 Code for the onset of arthritis mutilans in PsA    R code for C.2.1    R code for C.2.2    Splus code for C.2.2    R code for C.2.3