Description Usage Arguments Value Warning Examples
simulate_path() simulates a path of CramerLundberg
model until one of the following conditions is met: (1) the process is
ruined, (2) max_time_horizon is achieved, (3) the elapsed time of the
simulation is greater than max_simulation_time.
| 1 2 3 | ## S4 method for signature 'CramerLundberg'
simulate_path(model, max_time_horizon = NULL,
  max_simulation_time = NULL, seed = NULL)
 | 
| model | an S4 object of CramerLundberg class. | 
| max_time_horizon | a length one numeric vector specifying the maximum
time horizon, until with the process will be simulated. Default:  | 
| max_simulation_time | a length one numeric vector indicating the maximum
allowed time of simulation. The value should be specified in seconds.
Default:  | 
| seed | an optional arbitrary length numeric vector specifying the seed.
If provided, the  | 
PathCramerLundberg
Setting both max_time_horizon and max_simulation_time to
Inf might be dangerous. In this case, the only stopping condition is a
ruin of the process, which might not happen.
| 1 2 3 4 5 6 7 | model <- CramerLundberg(initial_capital = 10,
                        premium_rate = 1,
                        claim_poisson_arrival_rate = 1,
                        claim_size_generator = rexp,
                        claim_size_parameters = list(rate = 1))
path <- simulate_path(model = model, max_time_horizon = 10)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.