Description Usage Arguments Value Note Author(s) See Also Examples
The function mean
returns the expected value of the spot price
and the convenience yield for some time in the future. The function
vcov
returns the covariance matrix of the log spot price
and the convenience yield.
1 2 3 4 5 |
x, object |
An object inheriting from class
|
time |
The point in time for which the mean or
covariance matrix is computed. |
Either the expected value or variance-covariance matrix.
vcov
returns the variance-covariance matrix of [log spot
price, convenience yield](time).
David Luethi
schwartz2f
to create Schwartz 2 factor objects,
plot
to show trajectories of the state
variables including means and standard deviations.
1 2 3 4 5 6 7 8 | mean(schwartz2f(mu = 0.1), time = 1)
mean(schwartz2f(mu = 0.2), time = 0:3)
vcov(schwartz2f(), time = 10)
## Plot a schwartz2f-object including means and standard deviations
plot(schwartz2f(sigmaE = 0.1), n = 50, time = 5, dt = 1 / 52)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.