| Category: R |
View Full Details
|
Code snippet to price a vanilla option in R |
| Submitter: vanna |
Date: 2011/2/1 |
|
|
Description:
I have just pasted this for the sake of being handy:
myresult=GBSOption(TypeFlag = "c", S = 60, X = 65, Time = 1/4, r = 0.08,
b = 0.08, sigma = 0.30)
print(myresult)
This is generalized black scholes function, please refer the function documentation for parameter details Please see he FAQ How do I get started with R? if you want a quick start in R
Got a question or problem with this link? Just enter your message and click on submit. No registration is required.
|
254 0 bytes R http://www.quantcode.com/ |
|
Discuss this file. Just enter your message and click on submit. No registration is required.