You should update ivreg2. Here's what I have:
. which ivreg2
c:\ado\stbplus\i\ivreg2.ado
*! ivreg2 2.2.09 17jul2008
*! authors cfb & mes
*! see end of file for version comments
On Sun, 14 Dec 2008, Nirina F wrote:
> (1978 Automobile Data)
>
> . ivreg2 price (mpg foreign = weight trunk turn length), ffirst
> rkstat(): 3499 panelsetup() not found
> <istmt>: - function returned error
> r(3499);
>
> . which ivreg2
> c:\ado\plus\i\ivreg2.ado
> *! ivreg2 2.2.08 04sep2007
> *! authors cfb & mes
> *! see end of file for version comments
>
> . ssc install ivreg2, replace
> checking ivreg2 consistency and verifying not already installed...
>
> the following files will be replaced:
> c:\ado\plus\i\ivreg2.ado
> c:\ado\plus\i\ivreg2.hlp
> c:\ado\plus\i\ivreg2_cue.ado
>
> installing into c:\ado\plus\...
> installation complete.
>
> . which ivreg2
> c:\ado\plus\i\ivreg2.ado
> *! ivreg2 2.2.09 17jul2008
> *! authors cfb & mes
> *! see end of file for version comments
>
> . ivreg2 price (mpg foreign = weight trunk turn length), ffirst
> Error: must have ranktest version 01.1.03 or greater installed
> Currently installed version is 01.1.00
> To update, from within Stata type ssc install ranktest, replace
> r(601);
>
> . ssc install ranktest, replace
> checking ranktest consistency and verifying not already installed...
>
> the following files will be replaced:
> c:\ado\plus\r\ranktest.ado
>
> installing into c:\ado\plus\...
> installation complete.
>
> After installation is complete, I rerun again and it does't work.
>
> . ivreg2 price (mpg foreign = weight trunk turn length), ffirst
> rkstat(): 3499 panelsetup() not found
> <istmt>: - function returned error
> r(3499);
>
>
> I really don't understand what is wrong with my Stata. I had a problem
> with outreg2 so I just installed from scratch again my stata and now
> it is giving me another problem.
>
> Thanks in advance for your help.
> Nirina
> *
> * 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/
>
>
------------------------------------------------------------------------
Richard J. Stoll * Professor of Political Science * Rice University
Dept. Political Science MS 24 * P.O. Box 1892 * Houston TX 77251-1892
E-mail: [email protected] * Tel: 713-348-3362 * FAX: 713-348-5273
*
* 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/