I have written a program in Stata to perform a cluster bootstrap-t procedure for estimating t-statistics and parameter confidence intervals. The goal of the program is to use t-tests and to create CIs that are robust to cluster correlation, even for small numbers of clusters. For the curious, this is built off the "cluster bootstrap-t with asymptotic refinement" procedure described in Cameron, Gelbach, and Miller (2008): "Bootstrap-Based Improvements for Inference with Clustered Errors."
The problem is that I want to create a nice-looking regression table to output for the user, similar to what standard Stata regressions report. However, I cannot use the usual function "ereturn", because my program creates t-statistics and confidence intervals based on bootstrapping the t-statistic. As I understand the "ereturn" function, it requires a vector of parameters and a variance-covariance matrix as input, and then calculates the standard errors, t-statistics, and 95% CIs itself. This means that I cannot simply input my t-statistic p-values and 95% CIs into the "ereturn" function. Even if I calculate bootstrapped standard errors to fill in the variances in a VCV, the t-statistics and CIs would be wrong.
Is there another function in Stata that returns tables to the user and could be used to report the results of my program? Can I change the code of "ereturn" and save it as another program that will accept my statistics to output? Or am I stuck with outputting the results in simple text display?