GithubHelp home page GithubHelp logo

fixedincomebr's Introduction

FixedIncomeBR

R Package for Brazilian Fixed Income Bonds. It is a set of functions intended for academic use. There are functions for Federal Government Bonds and a set for generic bonds (with no anticipated amortization). For each bond type, there are four functions:

  • For Computing Bond Prices
  • For Computing the Yield to Maturity
  • For Generating a table with event dates and Cash Flows
  • For Computing Duration and Convexity
Bond Type PU Function YTM Function Events Function Duration+Convexity
Tesouro Prefixado (LTN) PU_LTN_BR.R YTM_LTN_BR.R Events_LTN_BR.R DurConv_LTN_BR.R
Tes. Prefix. Juros (NTNF) PU_NTNF_BR.R YTM_NTNF_BR.R Events_NTNF_BR.R DurConv_NTNF_BR.R
Tesouro IPCA+ (NTNB) PU_NTNB_BR.R YTM_NTNB_BR.R Events_NTNB_BR.R DurConv_NTNB_BR.R
Tesouro IPCA+ Juros (NTNB) PU_NTNBc_BR.R YTM_NTNBc_BR.R Events_NTNBc_BR.R DurConv_NTNBc_BR.R
Generic Function PU_BRBond.R YTM_BRBond.R Events_BRBond.R DurConv_BRBond.R

There is an additional function, get_VNA_AMBIMA.R which gets the relevant values for the indexed bonds. Another one is PChg_BRbond.Rwhich gives the predicted percentage in bond prices for a given change in Yield to Maturity.

There is also a suite of functions to price LTN bonds using the Black-Derman-Toy model using the ANBIMA model for the term structure.

There is also a function for using quadratic splines for estimating the term structure, called the Lorimier Method in the Damir Filipovic's Springer Book. There is an example in the Tests folder.

To install, use the devtools::install_github("claudiolucinda/FixedIncomeBR").

fixedincomebr's People

Contributors

claudiolucinda avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.