Directory of Open Source for Quantitative Finance and Trading
Username: Password: Not registered?
 
Quick Search:    (AJAX based: No need to press button)

Main : R : 


Category: R View Full Details
Download Now!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.

Note: A copy of this message will also be emailed to the submitter of this link
Downloaded 254 times  254  File Size 0 bytes  Supported Platforms R  Home Page http://www.quantcode.com/
Rating: 0.00 (0 votes)
Rate this File | Modify | Delete | Report Broken File | Tell a Friend | Comments (10)

Discuss this file. Just enter your message and click on submit. No registration is required.
Similar Links:

Subscribe to RSS or daily email updates of latest quantitative finance code listings
Email address :
Copyright © 2011 QuantCode Inc. All rights reserved.