Description Usage Arguments Value Examples
Simulate monthly returns assuming log returns in non-overlapping are iid normal with constant mean and volatility
1 2 3 4 5 6 7 |
n |
number of simulated trials |
param |
Vector of length two containing 1 - expected annual (arithmetic) return 2 volatility of stock price per year (sigma of log returns) |
t |
number of future monthly timesteps |
type |
type of output returns: arithmetic (discrete) or log (continuous) |
seed |
optional starting seed |
data in the form of a tibble
object with columns trial, time, mo_return, cum_return, accum
1 | SimEquityILN(n=10, c(.08, .16))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.