因此ARDL
,R 中的包实现了根据此问题和答案dynlm
接受的输入。stargazer
但是,我无法从ardl
or获取 stargazer 表auto_ardl
。它抛出无法识别的对象类型错误。有没有办法解决这个问题?
这是一个可重现的示例:
set.seed(10)
library(ARDL)
library(stargazer)
x=rnorm(100,mean = 5,sd=2)
y=rnorm(100,mean = 7,sd=3)
df=cbind(x,y)
model1=auto_ardl(y~x,data = df,max_order = 4)
class(model1)
[1] "list"
stargazer(model1)
% Error: Unrecognized object type.
class(model1$best_model)
[1] "dynlm" "lm" "ardl"
stargazer(model1$best_model)
% Error: Unrecognized object type.