View source: R/aasim_functions.r
calcRandReturns | R Documentation |
Returns n lognormally distributed random variables with a mean of r and a standard deviation of sd. Periods over 1 year are annualized. Specify inputs in decimal formats (e.g. 8
calcRandReturns(n, r, sd, t, seed = NA)
n |
Number of returns to generate |
r |
Mean return |
sd |
Standard deviation of returns |
t |
Time in years |
seed |
Random seed |
Random returns in decimal format
## Not run: calcRandReturns(10,.08,.12,1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.