Giter VIP home page Giter VIP logo

optirum's Introduction

README

Project Status: Active โ€“ The project has reached a stable, usable state and is being actively developed. Build Status Coverage Status CRAN downloads Locke Data Slack

About

optiRum is a stable package of utilities created by Optimum Credit Ltd's analysts. It is designed to provide convenience functions, standards, and useful snippets. Optimum Credit derives significant value from the R platform and associated community, so non-commercially sensitive functionality is made available in the spirit of reciprocity.

Installation

The latest stable version of the package is available on CRAN, and you can get the latest development version by running:

devtools::install_github("lockedata/optiRum")

Website

Browsing code and READMEs isn't for everyone! We have a lovely site made with pkgdown that you use to read up on how to use optiRum.

Check it out at itsalocke.com/optiRum.

Financial calcs

We have a range of financial functions that follow the Excel conventions. More of these will be released as they are required by Optimum analysts, and you can suggests ideas in the issue tracker.

  • PV -- present value
  • PMT -- instalment
  • RATE -- interest rate
  • APR -- produces the annual compound rate needed for UK financial services

Tax calcs (NEW)

As we've been doing more on calculating income and expenditure, we have included some generic functions that help calculate values for the UK tax system

  • taxYear provides the year that a date would belong to. It can be overridden to use any tax year, but this provides a means for moving between changing tax values over time
  • calcNetIncome gives the ability to calculate UK net income figures based off personal circumstances and tax tables

Credit scoring / logistic regressions

There are functions for credit analysts and people dealing with logistic regressions:

  • the logit, odds and probability functions enable the conversion from logit to probability, vice versa and anywhere in between -- great for handling glm outputs
  • scaledScore -- this produces the scores that companies are used to working with for the assessment of credit quality
  • giniChart and giniCoef -- produces a Gini chart in keeping with the Optimum style and embeds the coefficient, whilst the standalone giniCoef function allows for extracting a value or a series of values for use

Miscellaneous

There are helper functions that reduce document development time:

  • sanitise -- handles special characters for LaTeX documents, including situations where you have unresolved square brackets at the beginning which is great if you've used cut2 and want to show summary stats for intervals
  • generatePDF -- allows the production of PDFs in a one-liner
  • multiplot -- allows the plotting of multiple charts into one area, primarily of benefit when producing figures for documents
  • pounds -- displays values with a UK pound symbol at the front with UK decimalisation practices, this extends scales
  • thousands -- displays values to the nearest thousand and in a condensed format that is ideal for charts, this extends scales
  • theme\_optimum -- this produces a good looking frame for charts
  • convertToXML -- a lot of people are concerned about getting data out of XML, but it's difficult to find functions that put output data in XML, so this function takes XML functionality and wraps it neatly for such cases
  • CJ.dt -- a cross-join function for two data.tables
  • wordwrap = Change spaces to new lines in a string - great for plotting

Wanna report a bug or suggest a feature? Great stuff! For more information on how to contribute check out our contributing guide.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

optirum's People

Contributors

jangorecki avatar maelle avatar stephlocke avatar

Watchers

 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.