powered by
Direct stock generation. Object creation is managed internally.
rStock(horizon, nScenarios, ZC, vol, k, volStock, stock0, rho)
Horizon of projection
Number of scenarios
ZC rate input
Volatility for short rates
k for rates in vasicek model
Volatility
Initial value for stock
Correlation between stock and short rates
data(ZC) rStock(horizon=10, nScenarios=7, ZC=ZC, vol=.1, k=2, volStock=.2, stock0=100, rho=.5)
Run the code above in your browser using DataLab