Rate_converter {DetLifeInsurance}R Documentation

Interest & Discount Rate Converter

Description

Converts nominal and effective interest and discount rates.

Usage

Rate_converter(num, rate1, m, rate2, k, type = "days")

Arguments

num

A numeric type value. It is the interest/discount rate to be converted.

rate1

A string ("i", "d","f" or "j"). Type of interest/discount rate to be converted.

m

number of capitalizations.

rate2

A string ("i" for effective interest rate, "d" for effective discount rate,"f" for nominal discount rate, "j" for nominal interest rate).Type of interest/discount rate to obtain.

k

An integer. Number of capitalizations per year.

type

A string. Reference for "k", indicating whether it is expressed as a fraction or as days ("frac" or "days").

Examples

Rate_converter(0.04,"i",1,"i",6,"frac")
Rate_converter(0.04,"f",1,"j",6,"frac")
Rate_converter(0.04,"f",365,"d",60,"days")
Rate_converter(0.04,"f",365,"f",60,"days")


[Package DetLifeInsurance version 0.1.3 Index]