[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: p>t value extraction
On Wedmesday, Dejan wrote:
> I did regressions over the huge set of data and would like to have
> betas and reg. coefficients placed in the "data browser" window what I
> managed to do using eclass command such as ereturn list and save it as
> matrix, but I have a problem to do the same thing with the p>t values
> as I cannot extract it from ereturn list
The test statistics and p-values are not in the saved results since they
can be calculated from the coefficients and the standard errors.
Here is an example of how to save the coefficients and standard errors
into a dataset and then calculate test statistics, p-values and
confidence intervals from them:
regress mpg len turn head gear
mat se= vecdiag(cholesky(diag(vecdiag(e(V)))))'
local names: rownames b
local num : word count `names'
set obs `num'
replace vars= "``i''" in `i'
rename b1 coef
rename se1 se
* For searches and help try: