Output statistical test results to Word

How do I output a statistical test results to microsoft word?

model=lm(PD ~ . ,data=dataset)
cooks.distance(model)

Please help. I am quite new at R and cant seem to find much on this.

You could try this package https://cran.r-project.org/web/packages/officer/vignettes/word.html

You could also write your report on a .Rmd file and knit it as a word document.


image

1 Like

huxtable is a package for formatting table for different output including word. (through Rmd documents).

https://hughjonesd.github.io/huxtable/

It has a function specifically for regression result.

https://hughjonesd.github.io/huxtable/huxreg.html

I think this could help.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.