length_function: The Length Function

Description Usage Arguments Examples

Description

This function returns the length of a lease determined by the sales price balance. The function returns the length in weeks.

Usage

1
2
length_function(sales.balance = 1500, Option = "LowPayment", gamma = -1.8,
  alpha = 0.0018, c = 1.2, delta = 136.8)

Arguments

Option

"LowPayment" or "LowCost" should be entered to return the correspoding length

gamma

Do not adjust this parameter in production. Defaults to -1.8

alpha

Do not adjust this parameter in production. Defaults to -0.0018

c

Do not adjust this parameter in production. Defaults to 1.2

delta

Do not adjust this parameter in production. Defaults to 136.8

sales.balanace

The sales price balance (sales price-down payent) for the item on the contract. Defaults to 1500.

Examples

1
length_function(sales.balance=1500,Option=c("LowCost","LowPayment"))

ksyan/rpackage documentation built on May 20, 2019, 7:04 p.m.