Description Usage Arguments Details Value See Also Examples

This function aims to solve the general multi-stage model
with piecewise constant parameters approximatively
by integrating the characteristic equations with Euler's method.
For sufficiently small time intervalls, this approximation often
yields reasonable results.
Small time intervals can either be provided explicitly with many columns
in argument `t`

.
An alternative is the optional parameter `innerSteps`

.

1 | ```
msce_numerical(t, parameterList, innerSteps = 1000L)
``` |

`t` |
Each element in a row of |

`parameterList` |
List of Matrices.
Each list member has to be named. Allowed names are Values in matrices |

`innerSteps` |
Positive integer.
To improve accuracy, each time interval is internally
divided into |

The output list contains all used arguments of the
`parameterList`

and vectors of the model results for
hazard and logarithm of the survival function
for each row of the input.

1 2 3 4 5 6 7 8 | ```
t <-matrix(data=c(10,20,65,10,20,70),nrow=2,byrow=TRUE)
Nnu0 <- matrix(c(0.3,0.7,1),nrow = 1)
nu1 <- matrix(1e-6,nrow=1,ncol=3)
alpha1<- matrix(1,nrow=1,ncol=3)
gamma1<- matrix(c(0.13,0.13,0.13, 0.15,0.15,0.15),nrow=2,byrow=TRUE)
pars = list(Nnu0=Nnu0, nu1=nu1,alpha1=alpha1,gamma1=gamma1)
msce_numerical(t,pars)
``` |

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.