Description Usage Arguments Value Author(s) Examples

View source: R/utilities_shrinkDSM.R

Create a vector of division points for the model.
These points mark the times at which the parameters are allowed to evolve,
with the parameters being fixed between division points. The points
are generated in a data driven fashion, with a new point being created
when `events`

number of interesting events have been observed since
the last division point.

1 | ```
divisionpoints(times, delta, events = 1)
``` |

`times` |
A vector of real, positive numbers indicating the survival times. For right censored data, this is the follow up time. |

`delta` |
A vector of status indicators, with 0 = alive and 1 = dead.
Other choices are |

`events` |
A positive integer indicating the number of interesting events per interval until a new division is created. |

Returns an integer vector of time points to be used as division points `S`

in `shrinkDSM`

.

Daniel Winkler daniel.winkler@wu.ac.at

1 2 3 4 | ```
data("gastric")
# Create intervals for piecewise exponential model
intervals <- divisionpoints(gastric$time, gastric$status, 2)
``` |

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.