calcRandReturns: Random return(s) from a lognormally distribution in decimal...

View source: R/aasim_functions.r

calcRandReturnsR Documentation

Random return(s) from a lognormally distribution in decimal format

Description

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

Usage

calcRandReturns(n, r, sd, t, seed = NA)

Arguments

n

Number of returns to generate

r

Mean return

sd

Standard deviation of returns

t

Time in years

seed

Random seed

Value

Random returns in decimal format

Examples

## Not run: calcRandReturns(10,.08,.12,1)


rexmacey/aasim documentation built on Oct. 29, 2024, 9:30 a.m.