How to export Stan output to Excel


Does anyone know as to how I can export a stan output to an excel file. I am trying write.xlsx2 function, but it is not working. Appreciate help on this.


I would call on your stanfit object and then any of the functions that create Excel spreadsheets should work. Or you can do write.csv afterward, which can be read by Excel and many better programs.

1 Like

It worked. Thanks for your help.