Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

apt (version 4.0)

ecmDiag: Diagnostic Statitics for Symmetric or Asymmetric ECMs

Description

Report a set of diagnostic statistics for symmetric or asymmetric error correction models

Usage

ecmDiag(m, digits = 2)

Value

Return a data frame object with the following components by equation: R-squared, Adjusted R-squared, F-statistic, Durbin Watson statistic, p-value for DW statistic, AIC, BIC, and p-value of Ljung_Box Q statistics with 4, 8, 12 autocorrelation coefficients.

Arguments

m

an object of class ecm from the function of ecmAsyFit or ecmSymFit.

digits

number of digits used in rounding outputs.

Author

Changyou Sun (edwinsun258@gmail.com)

Details

Compute several diagnostic statistics for each ECM equation. This is mainly used to assess the serial correlation in the residuals and model adequacy.

References

Enders, W. 2004. Applied Econometric Time Series. John Wiley & Sons, Inc., New York. 480 P.

See Also

ecmAsyFit; ecmSymFit; and ecmDiag.

Examples

Run this code
# see example at daVich

Run the code above in your browser using DataLab