Package: fixedincome 0.0.5

fixedincome: Fixed Income Models, Calculations, Data Structures and Instruments

Fixed income mathematics made easy. A rich set of functions that helps with calculations of interest rates and fixed income. It has objects that abstract interest rates, compounding factors, day count rules, forward rates and term structure of interest rates. Many interpolation methods and parametric curve models commonly used by practitioners are implemented.

Authors:Wilson Freitas [aut, cre]

fixedincome_0.0.5.tar.gz
fixedincome_0.0.5.zip(r-4.5)fixedincome_0.0.5.zip(r-4.4)fixedincome_0.0.5.zip(r-4.3)
fixedincome_0.0.5.tgz(r-4.4-any)fixedincome_0.0.5.tgz(r-4.3-any)
fixedincome_0.0.5.tar.gz(r-4.5-noble)fixedincome_0.0.5.tar.gz(r-4.4-noble)
fixedincome_0.0.5.tgz(r-4.4-emscripten)fixedincome_0.0.5.tgz(r-4.3-emscripten)
fixedincome.pdf |fixedincome.html
fixedincome/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/wilsonfreitas/r-fixedincome/issues

Datasets:

On CRAN:

bondscalendarfinancefixed-incomeinterpolationplotpricing-bondsspot-rate-curve

47 exports 52 stars 3.12 score 30 dependencies 44 scripts 238 downloads

Last updated 1 years agofrom:e6a94eb6d3. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 23 2024
R-4.5-winOKAug 23 2024
R-4.5-linuxOKAug 23 2024
R-4.4-winOKAug 23 2024
R-4.4-macOKAug 23 2024
R-4.3-winOKAug 23 2024
R-4.3-macOKAug 23 2024

Exports:Arithas.data.frameas.forwardrateas.spotrateas.spotratecurveas.termclosestComparecompoundcompoundingContinuousCompoundingClassdaycountdibdiffdiscountDiscreteCompoundingClassfirstfit_interpolationforwardrateggspotratecurveplotimplied_rateinterp_flatforwardinterp_hermitesplineinterp_linearinterp_loglinearinterp_monotonesplineinterp_naturalsplineinterp_nelsonsiegelinterp_nelsonsiegelsvenssoninterpolateinterpolationinterpolation_errorinterpolation<-lastmaturitiesOpsparametersprepare_interpolationshiftshowSimpleCompoundingClassspotratespotratecurvetermtodaystomonthstoyears

Dependencies:bizdaysclicolorspacefansifarverggplot2gluegtableisobandjsonlitelabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigR6RColorBrewerrlangscalestibbleutf8vctrsviridisLitewithr

Plotting Spot Rate Curves

Rendered fromspot-rate-curve-plotting.Rmdusingknitr::rmarkdownon Aug 23 2024.

Last update: 2022-08-11
Started: 2022-08-11

Spot Rate Curve Indexing

Rendered fromspot-rate-curve-indexing.Rmdusingknitr::rmarkdownon Aug 23 2024.

Last update: 2022-07-11
Started: 2022-07-06

Spot Rate Curve Interpolation

Rendered fromspot-rate-curve-interpolation.Rmdusingknitr::rmarkdownon Aug 23 2024.

Last update: 2022-08-11
Started: 2022-07-06

Readme and manuals

Help Manual

Help pageTopics
Fixed income models, calculations and data structuresfixedincome-package fixedincome
Coerce objects to ForwardRateas.forwardrate as.forwardrate.SpotRate as.forwardrate.SpotRateCurve
Coerce to SpotRateas.spotrate as.spotrate,character-method as.spotrate,ForwardRate-method as.spotrate,SpotRateCurve-method
Coerce objects to spotratecurveas.spotratecurve as.spotratecurve.ForwardRate
Coerce a character to a Termas.term as.term,character-method
Compound methodcompound compound,character,numeric,numeric-method compound,Continuous,numeric,numeric-method compound,Discrete,numeric,numeric-method compound,ForwardRate,missing,missing-method compound,Simple,numeric,numeric-method compound,SpotRate,Date,Date-method compound,SpotRate,numeric,character-method compound,SpotRate,Term,missing-method compound,SpotRateCurve,missing,missing-method discount discount,ForwardRate,missing,missing-method discount,SpotRate,Date,Date-method discount,SpotRate,numeric,character-method discount,SpotRate,Term,missing-method discount,SpotRateCurve,missing,missing-method
Create Compounding classcompounding
Compounding classCompounding-class Continuous-class ContinuousCompoundingClass Discrete-class DiscreteCompoundingClass Simple-class SimpleCompoundingClass
Datasetsdatasets ZeroCurveBRL
Create Daycount classdaycount
Daycount classDaycount-class
Days in base for Daycountdib dib,Daycount-method
Calculate lagged differences of Term objectsdiff,Term-method
Fit parametric interpolation functionsfit_interpolation fit_interpolation,NelsonSiegel,SpotRateCurve-method fit_interpolation,NelsonSiegelSvensson,SpotRateCurve-method
Create a ForwardRate objectforwardrate forwardrate.numeric forwardrate.SpotRateCurve
ForwardRate classForwardRate-class
ggplot2 plotting functionsautolayer.ForwardRate autolayer.SpotRateCurve autoplot.SpotRateCurve ggplot2-support
Fancy ggplot for SpotRateCurve objectggspotratecurveplot
Implied ratesimplied_rate implied_rate,character,numeric,numeric-method implied_rate,Continuous,numeric,numeric-method implied_rate,Discrete,numeric,numeric-method implied_rate,Simple,numeric,numeric-method
Set/Get interpolation to SpotRateCurveinterpolation interpolation,SpotRateCurve-method interpolation<- interpolation<-,SpotRateCurve,Interpolation-method interpolation<-,SpotRateCurve,NULL-method
Interpolation errorinterpolation_error interpolation_error,SpotRateCurve-method
Interpolation classesFlatForward-class HermiteSpline-class Interpolation-class Linear-class LogLinear-class MonotoneSpline-class NaturalSpline-class NelsonSiegel-class NelsonSiegelSvensson-class
Create Interpolation objectsinterpolation-constructor interp_flatforward interp_hermitespline interp_linear interp_loglinear interp_monotonespline interp_naturalspline interp_nelsonsiegel interp_nelsonsiegelsvensson
Get SpotRateCurve terms as Date objectsmaturities
Get parameters of the interpolation modelsparameters parameters,NelsonSiegel-method parameters,NelsonSiegelSvensson-method
Create the interpolation functionprepare_interpolation prepare_interpolation,FlatForward,SpotRateCurve-method prepare_interpolation,HermiteSpline,SpotRateCurve-method prepare_interpolation,Linear,SpotRateCurve-method prepare_interpolation,LogLinear,SpotRateCurve-method prepare_interpolation,MonotoneSpline,SpotRateCurve-method prepare_interpolation,NaturalSpline,SpotRateCurve-method prepare_interpolation,NelsonSiegel,SpotRateCurve-method prepare_interpolation,NelsonSiegelSvensson,SpotRateCurve-method
Shift vectorsshift shift,numeric-method shift,Term-method
Create SpotRate objectsspotrate
SpotRate classSpotRate-class
SpotRate comparison operations!=,SpotRate,SpotRate-method <,SpotRate,SpotRate-method <=,SpotRate,SpotRate-method ==,SpotRate,SpotRate-method >,SpotRate,SpotRate-method >=,SpotRate,SpotRate-method Compare,numeric,SpotRate-method Compare,SpotRate,numeric-method spotrate-compare-method
Create a SpotRateCurve objectspotratecurve spotratecurve.numeric spotratecurve.SpotRate
SpotRateCurve classSpotRateCurve-class
SpotRateCurve helpersclosest closest,SpotRateCurve,character-method closest,SpotRateCurve,Term-method first first,SpotRateCurve,character-method first,SpotRateCurve,Term-method last last,SpotRateCurve,character-method last,SpotRateCurve,Term-method spotratecurve-helpers
Create Term classterm term.Date term.numeric term.Term
Term classDateRangeTerm-class Term-class
Convert Term in different unitsterm-conversion todays todays,Daycount,Term-method tomonths tomonths,Daycount,Term-method toyears toyears,Daycount,Term-method