I am running a series of regressions for which I generate p-values using a randomization inference procedure and then export my results using esttab. Rather than add these to my regression table at the bottom using estadd, what I would like to do is overwrite the stored p-values so that they are included beneath each corresponding coefficient in the output table.
In the following example code, I generate a create a vector of two p-values which I then attempt to add to the table. The issue is that rather than displaying below the first/second variable, the first/second p-values show up as separate variables called c1, c2. Is if possible to amend the code such that the value for "c1" displays as the p-value for "mpg" and the value for "c2" appears as the p-value for "_cons"?
Example:
Output:

In the following example code, I generate a create a vector of two p-values which I then attempt to add to the table. The issue is that rather than displaying below the first/second variable, the first/second p-values show up as separate variables called c1, c2. Is if possible to amend the code such that the value for "c1" displays as the p-value for "mpg" and the value for "c2" appears as the p-value for "_cons"?
Example:
Code:
clear all set more off sysuse auto reg price mpg est store example_reg mat pval= (0.123,0.456) estadd matrix pval= pval, replace esttab example_reg, cells(b(star fmt(%9.2f)) pval(par fmt(%9.3f)))
Comment