Contekan Visualisasi
R
Contohnya saya punya regresi kayak gini
model1<-ARDL::ardl(dfx~dintm+dfm,data=lold,order=c(1,5,1))
gimana cara terbaik ngesave tabelnya ke berbagai format?
Stargazer
Work in progress
KableExtra
Work in progress
sjPlot::tab_model
Pakai sjPlot enak sih. Bisa buat html ataupun disave ke word doc.
Ini output html-nya
sjPlot::tab_model(model1,dv.labels="growth of final good exports")
growth of final good exports | |||
---|---|---|---|
Predictors | Estimates | CI | p |
(Intercept) | 11.80 | 5.89 – 17.72 | 0.008 |
L(dfx, 1) | -0.70 | -1.32 – -0.09 | 0.035 |
dintm | 0.96 | 0.51 – 1.41 | 0.007 |
L(dintm, 1) | 0.53 | -0.29 – 1.35 | 0.131 |
L(dintm, 2) | -0.07 | -0.44 – 0.30 | 0.606 |
L(dintm, 3) | -0.23 | -0.48 – 0.02 | 0.060 |
L(dintm, 4) | 0.05 | -0.25 – 0.35 | 0.623 |
L(dintm, 5) | -0.02 | -0.29 – 0.24 | 0.789 |
dfm | -0.17 | -0.38 – 0.04 | 0.082 |
L(dfm, 1) | -0.07 | -0.31 – 0.18 | 0.458 |
Observations | 13 | ||
R2 / R2 adjusted | 0.987 / 0.947 |
Ini kalau disave ke doc (word)
sjPlot::tab_model(model1,
dv.labels = "growth of final good exports",
file="model1.doc")
broom::tidy
ini biasanya kugunakan kalau outputnya harus csv
Pakai broom::tidy()
write_csv(broom::tidy(model1),"model1.csv")
Modelsumary
Untuk modelsummary, Lihat sini dan sangat simpel sekali.