Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: goodness-of-fit McElroy's R-squared for NLSUR


From   Richard Williams <richardwilliams.ndu@gmail.com>
To   statalist@hsphsun2.harvard.edu, <statalist@hsphsun2.harvard.edu>
Subject   Re: st: goodness-of-fit McElroy's R-squared for NLSUR
Date   Tue, 13 Mar 2012 16:11:29 -0500

At 02:56 PM 3/13/2012, Pedro Tiago Carvalho wrote:
Dear Miss or Mrs,

I would like to obtain the overall goodness-of-fit McElroy's R-squared for
the whole NLSUR model (with several equations) on STATA  11.
Can someone tell me how I can obtain it? How can I calculate it?

I'm trying to compute McElroy's R-squared from the program below
"r2reg3.ado":

"
clear all
use "C:\Users\Pedro\Desktop\r2reg3.dta", clear
nlsur (y1 = {a} + {b1}*x1+ {b2}*x3) (y2 = {a} + {b1}^x2+ {b3}*x4)
r2reg3
"

 but gives the following error:

"
. r2reg3
equation() misspecified
r(303);
"

nlsur is not listed as one of the programs supported by r2reg3, so you may be out of luck.

Also note that (1) you should give the source of user-written programs -- r2reg3 is from SSC (2) don't send attachments, such as data files, as they confuse some email readers and get garbled in the archives. If you want to publicly share some files, I find that Dropbox is excellent for such purposes (and has many other advantages as well). See

http://db.tt/H8tHl0S


-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME:   (574)289-5227
EMAIL:  Richard.A.Williams.5@ND.Edu
WWW:    http://www.nd.edu/~rwilliam

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index