Learn R Programming

NFCP (version 1.0.1)

Futures.Price.Simulate: Simulate N-Factor Model Futures Prices

Description

`r lifecycle::badge("deprecated")`

This function was deprecated due to a change in the name of the function to adhere to the tidyverse style guide.

Usage

Futures.Price.Simulate(X.0, parameters, dt, N.obs, TTM, verbose = TRUE)

Arguments

Examples

Run this code
# NOT RUN {
output <- Futures.Price.Simulate(X.0 = c(log(SS.Oil$Spot[1,1]), 0),
                     parameters = SS.Oil$Two.Factor,
                     dt = SS.Oil$dt,
                     N.obs = nrow(SS.Oil$Stitched.Futures),
                     TTM = SS.Oil$Stitched.TTM)

## ->

output <- futures_price_simulate(x_0 = c(log(SS_oil$spot[1,1]), 0),
                     parameters = SS_oil$two_factor,
                     dt = SS_oil$dt,
                     N_obs = nrow(SS_oil$stitched_futures),
                     futures_TTM = SS_oil$stitched_TTM)
# }

Run the code above in your browser using DataLab