Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Re: p>t value extraction


From   "Maarten Buis" <[email protected]>
To   <[email protected]>
Subject   st: RE: Re: p>t value extraction
Date   Wed, 16 Feb 2005 16:31:22 +0100

----------------begin example----------
sysuse auto, clear
reg price mpg rep78 headroom trunk weight
matrix a = vecdiag(e(V))
matrix b = (e(b)\a)'
svmat b
rename b1 beta
gen se = sqrt(b2)
gen t = beta/se
gen p = ttail(63,t)
--------end example---------


Hope this helps,
Maarten

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index