hybrid_fun: Hybrid landmark function

Description Usage Arguments Examples

View source: R/hybrid_fun.R

Description

Function extracting a subset of a multistate data frame based on a landmark time and state. However, only information in non markov transitions are as in the landmark sample. The rest of the transitions contains same information as in the original multistate data frame.

Usage

1
hybrid_fun(data, s, l, non_markov_trans)

Arguments

data

Multistate data frame of type from sim_fun.

s

Landmark time.

l

Landmark state.

non_markov_trans

Transitions for which only landmark data should be kept.

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.