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 at the end of May, and its replacement, statalist.org is already up and running.


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

st: RE: xtivreg2 invalid variable name r(198); while using first or fe option


From   "Schaffer, Mark E" <M.E.Schaffer@hw.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: xtivreg2 invalid variable name r(198); while using first or fe option
Date   Wed, 5 Oct 2011 11:57:32 +0100

Daniel,

A few things...

- You haven't told us which version of -xtivreg2- you're using or (in
this email) which version of Stata.

- You haven't told us what the variable names are.  It's hard to comment
on what might be invalid about the variable names without this bit of
information! 

- What part of the suggestion at

http://www.stata.com/statalist/archive/2009-12/msg00654.html

is unclear?

Cheers,
Mark

NB: Personally ... I prefer citing archived messages from the Statalist
archive at stata.com instead of 3rd party archivers.

> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu 
> [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of 
> Daniel Schalling
> Sent: 05 October 2011 11:33
> To: statalist@hsphsun2.harvard.edu
> Subject: st: xtivreg2 invalid variable name r(198); while 
> using first or fe option 
> 
> Hi Statalist,
> 
> I used xtivreg2 with different simple syntaxes and got, when 
> using specific options, the error message " invalid name r(198);":
> - xtivreg2 depvar [varlist1] (endogvar=iv),fe   --> one 
> variable of varlist1
> is said to have an " invalid name r(198);"
> - xtivreg2 depvar [varlist1] (endogvar=iv),fe first  --> the 
> same variable of varlist1 is said to have an " invalid name r(198);"
> - xtivreg2 depvar [varlist1] (endogvar=iv),fd   --> estimation works
> - xtivreg2 depvar [varlist1] (endogvar=iv),fd first --> 
> depvar is said to have an " invalid name r(198);"
> 
> When I'm trying for example
> - xtivreg depvar [varlist1] (endogvar=iv),fe first the 
> estimation works.
> 
> What is the problem for that and how can it be solved?
> 
> I found this topic about that problem:
> http://statalist.1588530.n2.nabble.com/st-Problem-with-xtivreg
> 2-td4180979.ht
> ml
> 
> But I'm not sure about how to implement the suggested solution.
> 
> Thanks a lot, Daniel.
> 
> *
> *   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/
> 


-- 
Heriot-Watt University is a Scottish charity
registered under charity number SC000278.

Heriot-Watt University is the Sunday Times
Scottish University of the Year 2011-2012



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