Package: NFCP 1.2.2

Thomas Aspinall

NFCP: N-Factor Commodity Pricing Through Term Structure Estimation

Commodity pricing models are (systems of) stochastic differential equations that are utilized for the valuation and hedging of commodity contingent claims (i.e. derivative products on the commodity) and other commodity related investments. Commodity pricing models that capture market dynamics are of great importance to commodity market participants in order to exercise sound investment and risk-management strategies. Parameters of commodity pricing models are estimated through maximum likelihood estimation, using available term structure futures data of a commodity. 'NFCP' (n-factor commodity pricing) provides a framework for the modeling, parameter estimation, probabilistic forecasting, option valuation and simulation of commodity prices through state space and Monte Carlo methods, risk-neutral valuation and Kalman filtering. 'NFCP' allows the commodity pricing model to consist of n correlated factors, with both random walk and mean-reverting elements. The n-factor commodity pricing model framework was first presented in the work of Cortazar and Naranjo (2006) <doi:10.1002/fut.20198>. Examples presented in 'NFCP' replicate the two-factor crude oil commodity pricing model presented in the prolific work of Schwartz and Smith (2000) <doi:10.1287/mnsc.46.7.893.12034> with the approximate term structure futures data applied within this study provided in the 'NFCP' package.

Authors:Thomas Aspinall [aut, cre], Adrian Gepp [aut], Geoff Harris [aut], Simone Kelly [aut], Colette Southam [aut], Bruce Vanstone [aut]

NFCP_1.2.2.tar.gz
NFCP_1.2.2.zip(r-4.7)NFCP_1.2.2.zip(r-4.6)NFCP_1.2.2.zip(r-4.5)
NFCP_1.2.2.tgz(r-4.6-any)NFCP_1.2.2.tgz(r-4.5-any)
NFCP_1.2.2.tar.gz(r-4.7-any)NFCP_1.2.2.tar.gz(r-4.6-any)
NFCP_1.2.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
NFCP/json (API)
NEWS

# Install 'NFCP' in R:
install.packages('NFCP', repos = c('https://cranhaven.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/cranhaven/cranhaven.r-universe.dev/issues

Datasets:
  • SS_oil - Crude oil term structure futures data

On CRAN:

Conda:

archivedpackagesr-universe

3.40 score 5 stars 238 downloads 14 exports 8 dependencies

Last updated from:1fe6be5e39 (on package/NFCP). Checks:9 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK139
source / vignettesOK218
linux-release-x86_64OK122
macos-release-arm64OK99
macos-oldrel-arm64OK104
windows-develOK91
windows-releaseOK94
windows-oldrelOK101
wasm-releaseOK104

Exports:A_TAmerican_option_valuecov_funcEuropean_option_valuefutures_price_forecastfutures_price_simulateNFCP_domainsNFCP_Kalman_filterNFCP_MLENFCP_parametersspot_price_forecastspot_price_simulatestitch_contractsTSfit_volatility

Dependencies:FKF.SPLSMRealOptionsMASSmathjaxrnumDerivrbibutilsRdpackrgenoud

Modeling, Forecasting and Simulating Commodity Prices through Term Structure Estimation using Kalman Filtering: The R Package 'NFCP'

Rendered fromNFCP.Rmdusingknitr::rmarkdownon Jun 01 2026.

Last update: 2026-06-01
Started: 2026-06-01