aa1
aa1

Reputation: 3

Export regression results to a Word file

I'm trying to export my regression result (OLS) to a Word file.

I tried this code:

library(jtools)
export_summs(regression_1, regression_2, scale=TRUE, to.file = "docx", file.name = "regression_results")

but I got this error message:

Error in delete_cols(x, idx) : Tried to delete a non-existent column

How can I export the result of one or more regressions into a Word file (with the same results that I get from the summary function)?

Upvotes: 0

Views: 1150

Answers (1)

IvanCD
IvanCD

Reputation: 23

You probably sorted this out already, but I got it to work for me:
(1) I installed the package flextable and (2) used the following code:

install.packages("flextable")
flextable::export_summs(modelo_temp, scale = F, digits = 4, 
                        to.file = "docx", file.name = "regression_result.docx")

R created a dox file called regression_results.docx in my working folder.

Upvotes: 0

Related Questions