newTestSurvRec (version 1.0.2)

Plot.Cusum.Events: Plot data with recurrent events

Description

This function plot data with recurrent events

Usage

Plot.Cusum.Events(yy, xy = 1, xf= 1, colevent = "blue", colcensor = "red",
                                             ltyx = 1, lwdx = 1)

Arguments

yy

Data type recurrent events. Examples: TBCplapyr, TBCplathi or TBCpyrthi

xy

Initial unit to start the plotted

xf

Final unit of the plotted

colevent

It is color that identifies the event

colcensor

it is color that identifies the censor

ltyx

The line type. Line types can either be specified as an integer (0\(=\)"blank", 1\(=\)"solid" (default),2\(=\)"dashed",3\(=\)"dotted",4\(=\)"dotdash", 5\(=\)"longdash", 6\(=\)"twodash") or as one of the character strings: "blank", "solid", "dashed","dotted", "dotdash"," longdash", or "twodash", where blank uses invisible lines (i.e., does not draw them)

lwdx

The line width, a positive number, defaulting to 1. The interpretation is device-specific, and some devices do not implement line widths less than one. (See the help on the device for details of the interpretation.)

Value

Print the data correspond to the selects units

Details

This function print and plot as max 5 units each intent.

References

Martinez, C. (2009). Generalizacion de algunas pruebas clasicas de comparacion de curvas de supervivencia al caso de eventos de naturaleza recurrente. Tesis doctoral. Universidad Central de Venezuela (UCV). Caracas-Venezuela.

See Also

Plot.Data, Events, Plot. Surv.Rec

Examples

Run this code
# NOT RUN {
XL<-data(TBCplapyr)
 #TBCplapyr
 # See, the unit number 1 to 24
 Plot.Cusum.Events(TBCplapyr,1,24,"green","red",2,1)
 # See, the unit number 10 to 12
 Plot.Cusum.Events(TBCplapyr,10,12,"pink","blue",1,3)
 # See, the unit number 5 to 9
 Plot.Cusum.Events(TBCplapyr,5,11,,,2,3)
# }

Run the code above in your browser using DataLab