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: ivregress igmm


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: ivregress igmm
Date   Mon, 16 Aug 2010 06:30:02 +0000 (GMT)

--- On Mon, 16/8/10, nil sen wrote:
> What is the correct code for ivregress igmm (iterated
> gmm)?
> 
> When I am using -ivregress igmm depvar [varlist1] (varlist2
> = varlist_iv)- this is giving me the error  r(198) with
> the message 'igmm is not a valid estimator'. 

The syntax diagram used in the Stata helpfiles have a couple
of conventions, [] indicate that everything within those are
optional, these brackets should thus not be typed (the
exception is that weights should be specified with the 
brackets). There is a syntax element that is specific to 
-ivregress- called the estimator. The help-file list the 
allowed estimators, which does not include igmm, so that is
consistent with what the error message told you.

Stata commands often contain two parts separated by one 
comma: the part before the comma is the main command, while 
the part after the comma is a list of options. One of the
allowed options of -ivregress- is -igmm-, so all you need 
to do is specify your main command (using gmm as the 
estimator), and than type -, igmm-, as in the example
below

*------------ begin example -----------------
webuse hsng2
ivregress gmm rent pcturban (hsngval = faminc i.region), igmm
*-------------- end example -----------------

Hope this helps,
Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

http://www.maartenbuis.nl
--------------------------



      

*
*   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