fitExpExtrapolation: Fit an exponential function exp(-A*(x-x0)) to the last value...

View source: R/utilityFunctions.R

fitExpExtrapolationR Documentation

Fit an exponential function exp(-A*(x-x0)) to the last value (f(100) and f'(100) need to coincide):

Description

Fit an exponential function exp(-A*(x-x0)) to the last value (f(100) and f'(100) need to coincide):

Usage

fitExpExtrapolation(data, idx, up = TRUE, verbose = FALSE)

Arguments

data

data.frame to which an exponential function should be fit

idx

Index of the position of the fit

up

Whether the fit is forward- or backward-facing

verbose

Whether to include data about the fit in the output


MortalityTables documentation built on Nov. 2, 2023, 5:52 p.m.