price: Extracting price from the pricing functions outputs

Description Usage Arguments Value See Also Examples

View source: R/price.R

Description

The function is nothing else, but the object$price action, with the object returned by the pricing functions in the package.

Usage

1
price(x)

Arguments

x

Object returned by the pricing functions in the package

Value

The function returns the price as a single number (class "numeric").

See Also

Functions: AmerPutLSM, AmerPutLSM_AV, AmerPutLSM_CV, AsianAmerPutLSM, QuantoAmerPutLSM, and QuantoAmerPutLSM_AV.

Examples

1
2
3
put<-AmerPutLSM()
price(put)
put$price

LSMonteCarlo documentation built on May 29, 2017, 11:08 p.m.