Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Re:code for R-Squared and p


From   "Victor M. Zammit" <[email protected]>
To   <[email protected]>
Subject   st: Re:code for R-Squared and p
Date   Thu, 22 Jan 2009 14:59:27 +0100

I am going over an excellent Econometrics bookk,called "Microeconometrics
Using Stata" by A.C Cameron and P.V. Trivedi..The problem is that some of
its code is compatible with version 10.1 ,only,while  I have not upgraded
above version 9.2,yet.
I have come across the following code on page 143 :

return scalar r2 = abs(return(t2))>invtail($numobs-2,.025)     , and
return scalar p2 = 2*ttail($numobs-2,abs(return(t2)))

and apperently ,for version 9 ,     function invtail() is unknown,whereas
,returning p ,I get a dot "." ,every time I try it.
I would appreciate any help
Thank you very much ,before hand,
Victor m. Zammit

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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