help regtableVersion 3.0.0 -------------------------------------------------------------------------------

Title

regtable-- This command is designed to simplify visualizing subgroup analysis results from randomized experiments. The command outputs a table of conditional average treatment effects with corresponding standard errors across a subgroup variable.

regtableregtype depvar treatvar[if] [in] [weight],group(groupvar)[vce(vcetype)] [covars(varlist)] [file(path)] [replace]

regtypetype of regression (e.g., ols, logistic, poisson, etc.)depvardependent variabletreatvartreatment variablegroup(groupvar)name of the subgroup variablecovars(varlist)list of control variablesfile(path)directory and file name (if unspecified the resulting table is saved as `regtype'_`depvar'_`treatvar'_across_`groupvar'_table.csv in the working directory)replacereplaces the file, if it already exists

regtablecreates a csv output file of conditional average treatment effects and corresponding standard errors for each category of a subgroup variable. The resulting file could then be used for the construction of subgroup analysis graphs using graphing and data visualization software outside of Stata.. regtable reg y x, group(gender)

The resulting table is saved in `regtype'_`depvar'_`treatvar'_across_`groupvar'_table.csv if the file option is left unspecified.Saved Results

AuthorJohn Ternovski Analyst Institute johnt1@gmail.com