plot_simuData: Make an incidence plot from simulated data.

Description Usage Arguments Details Author(s) Examples

View source: R/plot.R

Description

Create an incidence plot ordered by follow-up time from a survival data simulated.

Usage

1
plot_simuData(data, title="Sample Survival Data")

Arguments

data

A dataframe of survival data containing the following columns: id, start, stop, status, x

title

Title of the graph

Details

This makes the incidence plot of the survival data based on the input dataframe from the tdSim.method1 or tdSim.method2 function. More generally, this function would also works with a dataframe containing survival data with the same columns name as indicated above.

Author(s)

Danyi Xiong, Teeranan Pokaprakarn, Hiroto Udagawa, Nusrat Rabbee
Maintainer: Nusrat Rabbee <rabbee@berkeley.edu>

Examples

1
2
3
4
dat <- tdSim.method2(500, duration=24,lambda12=1.3,lambda23=0.04, 
    lambda13=0.03, exp.prop=0.2,rateC=0.05, min.futime=4, min.postexp.futime=4)
	
plot_simuData(dat, title='method2_filter')

SimHaz documentation built on May 2, 2019, 6:46 a.m.