VEM | R Documentation |
ValuationEngineModel
-class constructorCreate an instance of an implementation of class
ValuationEngineModel
(e.g.
DiscountingEngineModel
, etc).
VEM(object)
DcModel(...)
CapmModel(...)
## S4 method for signature 'ANY'
CapmModel(...)
XfxDcModel(...)
## S4 method for signature 'ANY'
XfxDcModel(...)
object |
If an object of class |
This constructor is in fact a short cut to the constructors
of the implemented classes such as DcModel
for
DiscountingEngineModel
. Note
that it is not possible to instanciate class
DiscountingEngineModel
itself but only the implementing
classes extending class DiscountingEngineModel
.
An object of a class extending DiscountingEngineModel
ValuationEngineModel,DiscountingEngine
# example 1: create a new 'DiscountingEngine' object
dcm = VEM("DiscountingEngine")
# example 2: attach the reference to a Java 'DiscountingEngineModel'
# object to a new R-'DiscountingEngineModel' object. Note,
# the new object will refer to the same Java model.
dcm = VEM("DiscountingEngine")
set(dcm, what=list(
RiskFactorObjectLink="YC_CHF",
dc.spread=0.05))
# same.dcm = VEM(dcm$jref) # This command doesn't work.
# example 3: create a new 'DiscountingEngineModel' object using the
# Engine-specific model constructor method
dcm = DcModel()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.