bp_gap.model: Time series model for the best-practice gap

View source: R/DGM_fit.R

bp_gap.modelR Documentation

Time series model for the best-practice gap

Description

Time series model for the best-practice gap

Usage

bp_gap.model(X, benchmark, arima.order, drift)

Arguments

X

Input data object generated by prepare_data function.

benchmark

Fitted values given by BP linear model.

arima.order

A specification of the the ARIMA model to be used in fitting the best-practice gap. The ARIMA order is country specific. The three integer components (p, d, q) are the AR order, the degree of differencing, and the MA order. Format: numerical vector of length 3. If arima.order = NULL the function conducts a search over possible models according to AIC. See auto.arima for details.

drift

Indicate whether the ARIMA model should include a linear drift term or not. Type: logical value. If drift = NULL, it will be estimate automatically.


MortalityGaps documentation built on April 3, 2025, 7:34 p.m.