format_fun: Fromating function

Description Usage Arguments Examples

View source: R/mstate_format.R

Description

Function making simulated data in to a data set with included cencored at risk observations. This makes it possible to simultaneously fit a model for all transitions in a Surv object using the stratification on transin numbera.

Usage

1

Arguments

data

Data frame of the type generated from sim_fun.

tmat

Matrix numerating transitions.

Examples

1
2
3
4
5
6
7
8
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (x)
{
  }

niklasmaltzahn/multistate documentation built on Nov. 4, 2019, 10:06 p.m.