Package: NMOF 2.10-1

NMOF: Numerical Methods and Optimization in Finance

Functions, examples and data from the first and the second edition of "Numerical Methods and Optimization in Finance" by M. Gilli, D. Maringer and E. Schumann (2019, ISBN:978-0128150658). The package provides implementations of optimisation heuristics (Differential Evolution, Genetic Algorithms, Particle Swarm Optimisation, Simulated Annealing and Threshold Accepting), and other optimisation tools, such as grid search and greedy search. There are also functions for the valuation of financial instruments such as bonds and options, for portfolio selection and functions that help with stochastic simulations.

Authors:Enrico Schumann [aut, cre]

NMOF_2.10-1.tar.gz
NMOF_2.10-1.zip(r-4.5)NMOF_2.10-1.zip(r-4.4)NMOF_2.10-1.zip(r-4.3)
NMOF_2.10-1.tgz(r-4.4-any)NMOF_2.10-1.tgz(r-4.3-any)
NMOF_2.10-1.tar.gz(r-4.5-noble)NMOF_2.10-1.tar.gz(r-4.4-noble)
NMOF_2.10-1.tgz(r-4.4-emscripten)NMOF_2.10-1.tgz(r-4.3-emscripten)
NMOF.pdf |NMOF.html
NMOF/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/enricoschumann/nmof/issues

Datasets:

On CRAN:

black-scholesdifferential-evolutiongenetic-algorithmgrid-searchheuristicsimplied-volatilitylocal-searchoptimizationparticle-swarm-optimizationsimulated-annealingthreshold-accepting

9.35 score 34 stars 4 packages 92 scripts 1.2k downloads 1 mentions 74 exports 0 dependencies

Last updated 18 days agofrom:310ac8b371. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 03 2024
R-4.5-winOKNov 03 2024
R-4.5-linuxOKNov 03 2024
R-4.4-winOKNov 03 2024
R-4.4-macOKNov 03 2024
R-4.3-winOKNov 03 2024
R-4.3-macOKNov 03 2024

Exports:approxBondReturnbarrierOptionEuropeanbracketingbundFuturebundFutureImpliedRatecallCFcallHestoncfcallMertoncfBatescfBSMcfHestoncfMertoncfVGchangeIntervalcolSubsetconvexityCPPIDEoptdivRatiodrawdowndurationEuropeanCallEuropeanCallBEFrenchGAoptgbbgbmgreedySearchgridSearchLS.infoLSoptMAmaxSharpeminCVaRminMADminvarmvFrontiermvPortfolioNSNSfNSSNSSfpmPSoptputCallParityqTablerandomReturnsrepairMatrixresampleCrestartOptRitterSA.infoSAoptShillershowChapterNamesshowExampleTA.infoTAopttfAckleytfEggholdertfGriewanktfRastrigintfRosenbrocktfSchwefeltfTrefethentrackingPortfoliovanillaBondvanillaOptionAmericanvanillaOptionEuropeanvanillaOptionImpliedVolxtContractValuextTickValuexwGaussytm

Dependencies:

An Overview of the NMOF Package

Rendered fromAn_overview.Rnwusingutils::Sweaveon Nov 03 2024.

Last update: 2023-10-20
Started: 2013-12-27

Asset selection with Local Search

Rendered fromLSselect.Rnwusingutils::Sweaveon Nov 03 2024.

Last update: 2019-10-07
Started: 2013-09-04

Examples for the qTable function

Rendered fromqTableEx.Rnwusingutils::Sweaveon Nov 03 2024.

Last update: 2021-10-20
Started: 2013-04-29

Fitting the Nelson--Siegel--Svensson model with Differential Evolution

Rendered fromDEnss.Rnwusingutils::Sweaveon Nov 03 2024.

Last update: 2023-10-20
Started: 2013-09-04

Functions for portfolio selection

Rendered fromportfolio.Rnwusingutils::Sweaveon Nov 03 2024.

Last update: 2023-03-01
Started: 2020-07-29

Portfolio Optimisation with Threshold Accepting

Rendered fromTAportfolio.Rnwusingutils::Sweaveon Nov 03 2024.

Last update: 2017-10-24
Started: 2013-09-04

Repairing solutions

Rendered fromrepair.Rnwusingutils::Sweaveon Nov 03 2024.

Last update: 2021-10-20
Started: 2013-09-04

Robust Regression with Particle Swarm Optimisation and Differential Evolution

Rendered fromPSlms.Rnwusingutils::Sweaveon Nov 03 2024.

Last update: 2019-06-27
Started: 2013-09-04

Solving the N-Queens Problem with Local Search

Rendered fromLSqueens.Rnwusingutils::Sweaveon Nov 03 2024.

Last update: 2023-11-01
Started: 2017-10-24

Vectorised objective functions

Rendered fromvectorise.Rnwusingutils::Sweaveon Nov 03 2024.

Last update: 2017-10-24
Started: 2013-09-04

Readme and manuals

Help Manual

Help pageTopics
Numerical Methods and Optimization in FinanceNMOF-package NMOF
Approximate Total Return of BondapproxBondReturn
Zero-Bracketingbracketing
German Government Bond DatabundData
Theoretical Valuation of Euro Bund FuturebundFuture bundFutureImpliedRate
Price a Plain-Vanilla Call with the Characteristic FunctioncallCF cfBates cfBSM cfHeston cfMerton cfVG
Price of a European Call under the Heston ModelcallHestoncf
Price of a European Call under Merton's Jump-Diffusion ModelcallMerton
Full-rank Column SubsetcolSubset
Constant-Proportion Portfolio InsuranceCPPI
Optimisation with Differential EvolutionDEopt
Diversification RatiodivRatio
Drawdowndrawdown
Computing Prices of European Calls with a Binomial TreeEuropeanCall EuropeanCallBE
Download Datasets from Kenneth French's Data LibraryFrench
Mutual Fund ReturnsfundData
Optimisation with a Genetic AlgorithmGAopt
Greedy SearchgreedySearch
Grid SearchgridSearch
Local-Search InformationLS.info
Stochastic Local SearchLSopt
Simple Moving AverageMA
Maximum-Sharpe-Ratio/Tangency PortfoliomaxSharpe
Option Pricing via Monte-Carlo Simulationgbb gbm mc
Minimum Conditional-Value-at-Risk (CVaR) PortfoliosminCVaR
Compute Minimum Mean-Absolute-Deviation PortfoliosminMAD
Minimum-Variance Portfoliosminvar
Computing Mean-Variance Efficient PortfoliosmvFrontier mvPortfolio
Zero Rates for Nelson-Siegel-Svensson ModelNS NSS
Factor Loadings for Nelson-Siegel and Nelson-Siegel-SvenssonNSf NSSf
Option DataoptionData
Partial Momentspm
Particle Swarm OptimisationPSopt
Put-Call ParityputCallParity
Prepare LaTeX Table with Quartile PlotsqTable
Create a Random ReturnsrandomReturns
Repair an Indefinite Correlation MatrixrepairMatrix
Resample with Specified Rank CorrelationresampleC
Restart an Optimisation AlgorithmrestartOpt
Download Jay Ritter's IPO DataRitter
Simulated-Annealing InformationSA.info
Optimisation with Simulated AnnealingSAopt
Download Robert Shiller's DataShiller
Display Code ExamplesshowChapterNames showExample
Threshold-Accepting InformationTA.info
Optimisation with Threshold AcceptingTAopt
Classical Test Functions for Unconstrained OptimisationtestFunctions tfAckley tfEggholder tfGriewank tfRastrigin tfRosenbrock tfSchwefel tfTrefethen
Compute a Tracking PortfoliotrackingPortfolio
Pricing Plain-Vanilla Bondsconvexity duration vanillaBond ytm
Pricing Plain-Vanilla (European and American) and Barrier Options (European)barrierOptionEuropean vanillaOptionAmerican vanillaOptionEuropean vanillaOptionImpliedVol
Contract Value of Australian Government Bond FuturextContractValue xtTickValue
Integration of Gauss-typechangeInterval xwGauss