Learn R Programming

bivarhr (version 0.1.5)

summarise_tvarstar_posthoc: Summarise nonlinear time-series models (TVAR and LSTAR)

Description

Produces a small summary table for nonlinear time-series models such as TVAR and LSTAR, focusing on model status and AIC.

Usage

summarise_tvarstar_posthoc(tsdyn_res)

Value

A data frame with one row per model and columns:

  • model: "TVAR", "LSTAR_I", "LSTAR_C".

  • status: model class string or NA.

  • aic: numeric AIC value or NA.

Arguments

tsdyn_res

A list of model objects, typically with elements $TVAR, $LSTAR_I, $LSTAR_C, as returned by a fitting routine based on the tsDyn package.

Details

For each of the three models (TVAR, LSTAR for I, LSTAR for C), the function extracts:

  • A textual status (class names of the object).

  • The AIC, if stats::AIC() can be computed.

If tsdyn_res is NULL, default rows with NA values are returned.