Hello Dear Stan Users,
How can I save the helpful summary output of print.stanfit?
For example, cfa1 is a stanfit object with a large number of parameters. I need to save the summary obtained from
print(cfa1, pars=c("nu", "lambda", "cov"))
But there doesn't seem to be a way to save this output, for example I want to do something like:
sum<-data.frame(print(cfa1, pars=c("nu", "lambda", "cov")))
...but this returns an empty data frame.
I've tried to modify the print.stanfit function to allow the function to return a non-NULL result for me, but so far no luck. However, I imagine I'm not the first person who has wanted to save this information. Is it possible to allow the function to do this?
I need to save summary results for each of a large number of replications to summarize results for conditions of a simulation study.
Best,
Sierra