Description Usage Arguments Details Value Examples
Note Gaver-Stehfest algorithm is theoretically convergent but practically high precision arithmetic is required.
This is not achieved in R as R4.0+ uses "long-double" in C, which is 64bit floating point. As a result, using high
n
would yield results divergent to infinity. Therefore, small n
should be used. Using default arguments,
values for different n
would be printed along with a plot which assists in determining an appropriate n
.
1 | ruin_prob_exp_gs(u, t, c, lambda, beta, ...)
|
u |
Numerical. Initial surplus. |
t |
Numerical. Terminal time. |
c |
Numerical. Premium rate. |
lambda |
Numerical. Claim arrival rate ("lambda" parameter of the Poisson process). |
beta |
Numerical. Rate of the exponential distribution for the severity (mean of the distribution is |
... |
Optional argument to be passed to |
All arguments must be of length 1. For vectorized arguments, either use a loop or apply
family, or purrr
package.
Net profit condition is assumed, i.e. c-lambda/beta > 0
.
Numeric. Vector of length n
if try_n
is TRUE
(Default). Otherwise, length is 1.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.