Description Usage Arguments Value References Examples

This function rounds up the observed number of days in the `cost`

data set (contained in R package **pec**) to full years.

1 | ```
dis.cost(cost)
``` |

`cost` |
data set |

A data frame that contains the same variables as the `cost`

data frame in R package **pec**. The only difference between `cost`

and the output of `dis.cost`

are the units of the event times. In `cost`

, event times are measured in days whereas `dis.cost`

results in a data frame with event times measured in years.

Joergensen HS, Nakayama H, Reith J, Raaschou HO, and Olsen TS. Acute stroke with atrial fibrillation. The Copenhagen Stroke Study. Stroke, 27(10):1765-9, 1996.

Mogensen UB, Ishwaran H, and Gerds TA. Evaluating random forests for survival analysis using prediction error curves. Journal of Statistical Software, 50(11), 2012.

1 2 |

DStree documentation built on May 2, 2019, 3:37 p.m.

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.