Ramp function

Interpolated and Curve-Fitted Projections category - Interpolated and Curve-Fitted Rates family Home 
What the name means"Ramped Rate"
SyntaxRamp ( Time, Base, Dates, AnnualRates, [PolyOrder], [DayCount], [Periods], [ProjMode] )
DescriptionProjects amounts in timeperiods where the rates are roughly known at various points in time, and you need a best-fit polynomial curve fitted to the data.
Auto Array FunctionThis function can be used as an array function as well as a normal function, by pluralising the first variable (in this case Time) to give an answer array. See Array Functions.
VariableType or ValueDescription
Inputs: (8)
1 Time TimePeriod Start The Time or Date that signifies the start of a time period. Usually accompanied by Base, the length (months) or end of the time period.
2 Base TimePeriod Base Either the length of a Time Period, expressed in exact months, or as a date, in which case it is the date of the end of the time period.
3 Dates Range Of Dates A range of dates.
4 AnnualRates Range of Floats (numbers) Either a single AnnualRate or a range of annual rates.
5 PolyOrder Integer (Optional) Order of polynomial you want (0 for best polynomial of order 1 to 20), or input -1 for straight line connection between each data point (Optional)
6 DayCount Float (Optional) Either a single number denoting the DayCount method, or a number in the form ww.ss where ww is the daycount of whole periods and ss applies to stub periods. See Using Daycount. (Optional)
7 Periods Annual Sequence (Optional) Either an option number, or a range of floats, describing the accruals periods or the timing of cash payments, in the format mm.dd for payments in advance or -mm.dd for payments in arrears. See Using Daycount (Optional)
8 ProjMode Float (Optional) Accruals=0, Cash=1. Has other settings. See detail and the topic Accruals and Cash (Optional)
Output:
Return Value CalcdAmt Float The amount calculated for the time period
Defaults and Values

The variable(s) of this function have certain defaults and/or switch values associated with them. Click here to see more.

Range Handling and Constraints

This function has range inputs that are subject to range handling procedures to help reduce input errors and increase flexibility and speed. Click here to see more.

Key Points
When using polynomial curve fitting, there is a minimum goodness of fit criteria built in to the function. If the R squared is below 50%, the function will return an #NUM! error, to protect you from inadvertently using a badly fitted curve.
Tip
Polynomial Curve Fitting (ØConnectOptØ>=0): We recommend letting the function choose the best polynomial for you (ØConnectOptØ=0). It will choose the polynomial with the best R squared from the first 20 degrees of order. Choosing your own polynomial degree (ØConnectOptØ>=1) does presuppose that you have some special knowledge about the data that leads you to think that one particular degree is most suitable, and increases your chances of having a failure of the function due to an unacceptably bad goodness of fit.
Examples
  • Preview of the Ramp example.
  • The above spreadsheet can be accessed from the Quick Reference (on the Business Functions menu), on the Examples menu, or in the Business Functions\Component Examples directory
Published Edition Changes in Behaviour

This function has experienced some changes in its behaviour over its history. Click here to see more.