reporting ARDL results in R

366 views Asked by At

I'm working with time series data and have run an ARDL regression using the ardlBound function from the dLagM package. I tried to export my results using stargazer; however, I believe stargazer is not readily compatible with ardlBound output.

Is there a way of reporting this output as a nice-looking reproducible table in R?

Below is sample data and code:

Thanks very much!

library(dLagM)
data(M1Germany)
data <- M1Germany[1:144,]
results <- ardlBound(data = data , formula = logprice ~ interest + logm1 , case = 2 , 
                   max.p = 3, max.q = 3)
1

There are 1 answers

1
Vincent On BEST ANSWER

The modelsummary package can summarize the ARDL.model object stored in results$ARDL.model:

# load libraries
library(dLagM)
library(modelsummary)

# fit model
data(M1Germany)
data <- M1Germany[1:144,]
results <- ardlBound(data = data , formula = logprice ~ interest + logm1 , case = 2 , max.p = 3, max.q = 3)

# create table
modelsummary(results$ARDL.model)

enter image description here

(Disclaimer: I am the modelsummary maintainer.)