Skip to content

NFCP

N-Factor Commodity Pricing Through Term Structure Estimation

v1.2.2 · Apr 3, 2026 · GPL-3

Description

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.

Downloads

345

Last 30 days

11166th

897

Last 90 days

3.8K

Last year

Trend: +19% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (2)

Dependency Network

Dependencies Reverse dependencies FKF.SP LSMRealOptions MASS numDeriv rgenoud mathjaxr Rdpack FKF.SP LSMRealOptions NFCP

Version History

new 1.2.2 Mar 10, 2026
updated 1.2.2 ← 1.2.1 diff Jun 16, 2025
updated 1.2.1 ← 1.2.0 diff Feb 16, 2022
updated 1.2.0 ← 1.1.0 diff Aug 6, 2021
updated 1.1.0 ← 1.0.1 diff Jun 24, 2021
updated 1.0.1 ← 1.0.0 diff May 5, 2021
updated 1.0.0 ← 0.2.0 diff May 1, 2021
updated 0.2.0 ← 0.1.0 diff Feb 24, 2021
new 0.1.0 Jan 12, 2021