How to export Stan output to Excel

Hi,

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.

Thanks

I would call as.data.frame 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.