Package: StochSimR 1.0.0
StochSimR: Stochastic Process Simulation Engine
A modular simulation engine for stochastic processes. Provides exact and approximate simulation methods for Poisson processes, Brownian motion, discrete-time Markov chains, Levy processes (gamma, normal inverse Gaussian, variance-gamma, alpha-stable), Merton jump-diffusion models, Hawkes self-exciting processes, geometric Brownian motion, and Ornstein-Uhlenbeck mean-reverting diffusions. Includes variance reduction techniques (antithetic variates, control variates, importance sampling, stratified sampling), parallel simulation via the 'future' framework, rare-event simulation (cross-entropy and multilevel splitting), path visualization, and summary statistics. Methods are based on Glasserman (2003) <doi:10.1007/978-0-387-21617-1> and Asmussen & Glynn (2007) <doi:10.1007/978-0-387-69033-9>.
Authors:
StochSimR_1.0.0.tar.gz
StochSimR_1.0.0.zip(r-4.7)StochSimR_1.0.0.zip(r-4.6)StochSimR_1.0.0.zip(r-4.5)
StochSimR_1.0.0.tgz(r-4.6-any)StochSimR_1.0.0.tgz(r-4.5-any)
StochSimR_1.0.0.tar.gz(r-4.7-any)StochSimR_1.0.0.tar.gz(r-4.6-any)
StochSimR_1.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
StochSimR/json (API)
| # Install 'StochSimR' in R: |
| install.packages('StochSimR', repos = c('https://ayush291202.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/ayush291202/stochsimr/issues
Last updated from:5f4602a5f9. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 160 | ||
| source / vignettes | OK | 300 | ||
| linux-release-x86_64 | OK | 190 | ||
| macos-release-arm64 | OK | 157 | ||
| macos-oldrel-arm64 | OK | 200 | ||
| windows-devel | OK | 112 | ||
| windows-release | OK | 116 | ||
| windows-oldrel | OK | 110 | ||
| wasm-release | OK | 146 |
Exports:compare_methodsis_stoch_pathmc_estimatemc_rare_eventnew_stoch_pathpath_summaryplot_acf_pathsplot_distributionplot_pathssim_browniansim_gbmsim_hawkessim_jump_diffusionsim_levysim_markovsim_ousim_parallelsim_poissonvr_antitheticvr_control_variatevr_importancevr_stratified
Dependencies:clicodetoolscpp11digestfarverfuturefuture.applyggplot2globalsgluegtableisobandlabelinglifecyclelistenvparallellyR6RColorBrewerrlangS7scalesvctrsviridisLitewithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Compare Simulation Methods | compare_methods |
| Test if an Object is a stoch_path | is_stoch_path |
| Monte Carlo Estimator with Diagnostics | mc_estimate |
| Rare-Event Simulation | mc_rare_event |
| Create a stoch_path Object | new_stoch_path |
| Path Summary Statistics | path_summary |
| Plot Autocorrelation of Path Increments | plot_acf_paths |
| Plot Terminal Value Distribution | plot_distribution |
| Plot Sample Paths | plot_paths |
| Simulate Brownian Motion | sim_brownian |
| Simulate Geometric Brownian Motion | sim_gbm |
| Simulate a Hawkes (Self-Exciting) Process | sim_hawkes |
| Simulate a Jump-Diffusion Process (Merton Model) | sim_jump_diffusion |
| Simulate a Levy Process | sim_levy |
| Simulate a Discrete-Time Markov Chain | sim_markov |
| Simulate an Ornstein-Uhlenbeck Process | sim_ou |
| Parallel Simulation of Stochastic Processes | sim_parallel |
| Simulate a Poisson Process | sim_poisson |
| Antithetic Variates Estimator | vr_antithetic |
| Control Variate Estimator | vr_control_variate |
| Importance Sampling Estimator | vr_importance |
| Stratified Sampling Estimator | vr_stratified |
