Description Usage Arguments Details Value Examples
Computing finite-time ruin probability with initial surplus u and terminal time t, denoted
ψ(u,t).
Method described in "Finite-time ruin probabilities using bivariate Laguerre series" is used. For numerical
stability, argument u_scale
has to be tuned via uscale_search
. In addition, u
cannot be
too large.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
u |
Numerical of length 1. Initial surplus. |
t |
Numerical of length 1. Terminal time. |
c |
Numerical of length 1. Premium rate. |
lambda |
Numerical of length 1. Claim arrival rate ("lambda" parameter of the Poisson process). |
family |
An object returned by the family constructors, e.g. |
M |
Numerical of length 1. Default to be 20. How many Laguerre terms are used. |
psi_u |
Numerical of length 1 if not |
u_scale |
Numerical of length 1. Whether a monetary scale is applied. it would have a huge impact on the ouput.
Recommend to use |
t_scale |
Numerical of length 1. Whether a time scale is applied. It generally have negligible impact on the output. |
check |
Logical. Default to be |
include_error |
Logical. Default to be |
The net profit condition must be satisfied, i.e. c-lambda*family$mean>0
.
Numerical of length 1 if include_error
is FALSE
. Otherwise a list of length 2, with
elements "res" and "err".
1 2 3 | library(pruin)
ruin_prob_ls(u=10,t=2,c=1.1,lambda=1,family=exponential()(beta=1),u_scale = 0.6)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.