haz_costum: costumized intensity

Description Usage Arguments Examples

View source: R/inter_arrival_dists.R

Description

This function can build constomized intensity functions based on splies

Usage

1
haz_costum(initial_grid, grid_length, method, ...)

Arguments

initial_grid

A two column matrix of time points and hazard values.

grid_length

Grid resolution in spline approximation.

method

Spline method.

plot

If True a plot of the specified hazard is generated. Default is False.

type

Character specifying to output hazard function "haz" or cumulative hazard function "cumhaz".

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.