gen_air_model_matrix: Fractional airline model summary

View source: R/gen_air_model_matrix.r

gen_air_model_matrixR Documentation

Fractional airline model summary

Description

Generates a matrix with coefficient estimates from the fractional airline model, generated by the JDemtetra+ high dimension modeling R routines

Usage

gen_air_model_matrix(
  this_est,
  xreg_names = NULL,
  this_week = NULL,
  this_year = NULL
)

Arguments

this_est

A list object generated by the estimation procedure of the fractional airline model

xreg_names

Character vector; Names of the user-defined regression variables.

this_week

Numeric vector; Week of each observation. Default: NULL

this_year

Numeric vector; Year of each observation. Default: NULL

Value

Generate matrix of model parameters estimated for the fractional airline model

Examples

ic_default_est <-
   rjd3highfreq::fractionalAirlineEstimation(ic_obs, periods=c(365.25/7), x=ic_default_matrix)
ic_default_model <- 
   gen_air_model_matrix(ic_default_est,
                        xreg_names = colnames(ic_default_matrix),
                        this_week = ic_week, this_year = ic_year)

bcmonsell/airutilities documentation built on May 16, 2022, 3:23 p.m.