Description Usage Arguments Value Note Author(s) References See Also Examples

image method for an object of class ‘TPCmsm’. Creates a grid of colored or gray-scale rectangles with colors corresponding to the values of the transition probabilities.

1 2 3 4 |

`x` |
An object of class ‘TPCmsm’. |

`image.type` |
A character string specifying the type of image. If “tc” the image with time in the x axis, covariate in the y axis and transition probability in the z axis is drawn. If “ct” the image with covariate in the x axis, time in the y axis and transition probability in the z axis is drawn. Defaults to “tc”. |

`tr.choice` |
Character vector of the form ‘c(“from to”, “from to”)’ specifying which transitions should be plotted. Default, all the transition probabilities are plotted. |

`xlim` |
Limits of x-axis for the plot. |

`ylim` |
Limits of y-axis for the plot. |

`zlim` |
Limits of z-axis for the plot. Defaults to |

`col` |
Vector of colour. Defaults to |

`xlab` |
x-axis label. If |

`ylab` |
y-axis label. If |

`main` |
The main title for the plot. By default no main title is added. |

`sub` |
A sub title for the plot. By default no sub title is added. |

`key.title` |
Statements which add titles for the plot key. |

`key.axes` |
Statements which draw axes on the plot key. This overrides the default axis. |

`las` |
The style of labeling to be used. The default is to use horizontal labeling. |

`conf.int` |
Logical. Whether to display images of confidence regions. Default is FALSE. |

`legend` |
A logical specifying if a legend should be added. |

`curvlab` |
A character or expression vector to appear in the legend. Default is the name of the transitions. |

`contour` |
If |

`nlevels` |
The number of levels to divide the range of z. Defaults to 20 levels. |

`levels` |
Numeric vector of levels at which to draw contour lines.
Defaults to |

`...` |
Further arguments for image. |

No value is returned.

The device is divided by the number of transitions specified by argument `tr.choice`

.
Being the number of columns equal to the number of transitions.
If argument `conf.int=TRUE`

the device is further divided to make room for the confidence regions.
In this case two rows are added, one for each side of the confidence region.
So if `conf.int=TRUE`

the center row provides the image of the estimates.
The upper row provides the upper side of the confidence region.
And the lower row provides the lower side of the confidence region.

Artur Araújo, Javier Roca-Pardiñas and Luís Meira-Machado

Meira-Machado L., de Uña-Álvarez J., Datta S. Conditional Transition Probabilities in a non-Markov Illness-death Model. Discussion Papers in Statistics and Operation Research n 11/03, 2011. Department of Statistics and Operations Research, University of Vigo (ISSN: 1888-5756, Deposito Legal VG 1402 - 2007). This file can be downloaded from: http://webs.uvigo.es/depc05/reports/12_05.pdf

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ```
# Set the number of threads
nth <- setThreadsTP(2)
# Create survTP object
data(heartTP)
heartTP_obj <- with( heartTP, survTP(time1, event1, Stime, event, age=age) )
# Compute LIN conditional transition probabilities with confidence band
TPCmsm_obj <- transLIN(heartTP_obj, s=57, t=310, x=0, conf=TRUE, n.boot=100,
method.boot="basic")
# Plot image with Time in the x-axis
image(TPCmsm_obj, image.type="tc", tr.choice=c("1 1", "1 2", "2 2"), conf.int=TRUE,
ylab="Age")
# Plot image with Time in the y-axis
image(TPCmsm_obj, image.type="ct", tr.choice=c("1 1", "1 2", "1 3"), conf.int=TRUE,
xlab="Age")
# Restore the number of threads
setThreadsTP(nth)
``` |

```
Loading required package: KernSmooth
KernSmooth 2.23 loaded
Copyright M. P. Wand 1997-2009
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.