8000 GitHub - Jiarui315/pgvint: Vintage analysis in R for PostgreSQL data
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Jiarui315/pgvint

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vintage Analysis in PostgreSQL and R

pgvint transforms source data into vintage analysis format. From detailed list of units (e.g. loans) and events (e.g. repayment), vintage curves are calculated.

Pre-requisites

  • R version 3.02 or higher
  • PostgreSQL version 9.1 or higher
  • ggplot2, sqldf, RPostgreSQL, devtools

Installation

Package installation

library(devtools)
install_github("pgvint",username="tomasgreif")
library(pgvint)

Create time_distance function and load sample data

Connection <- c('user','password','database','host','port')
CreateTimeDistanceFunction(Connection=Connection,LoadData=TRUE)

Usage

See help:

help(GetVintageData)
help(PlotVintageData)
help(CreateTimeDistanceFunction)

Sample plots

Standard vintage curves: alt tag

Tranposed vintage curves: alt tag

About

Vintage analysis in R for PostgreSQL data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0