Statalist


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

Re: st: bootstrapping xtmixed


From   [email protected] (Jeff Pitblado, StataCorp LP)
To   [email protected]
Subject   Re: st: bootstrapping xtmixed
Date   Wed, 24 Jun 2009 18:09:35 -0500

John Antonakis <[email protected]> is using the -bootstrap:- prefix with
-xtmixed- and is getting a syntax error for what looks like a valid call to
-xtmixed-:

> When I run the following, it works fine:
> xi: xtmixed y sr_hat sal equity  i.industry i.country i.year if ceo != 
> 136 & ceo!= 200 || ceo : ,
> 
> However, when I bootstrap it I get:
> . xi: bootstrap, reps(500): xtmixed y sr_hat sal equity  i.industry 
> i.country i.year if ceo != 136 & ceo!= 200 || ceo : ,
> i.industry        _Iindustry_0-9      (naturally coded; _Iindustry_0 
> omitted)
> i.country         _Icountry_0-19      (naturally coded; _Icountry_0 omitted)
> i.year            _Iyear_1-7          (naturally coded; _Iyear_1 omitted)
> 200| invalid name
> r(198);
> 
> Same problem when using the jacknife. I wonder why I am getting this error.

-bootstrap- is having trouble parsing the -xtmixed- syntax.  John should try
putting the -if- clause at the end after all the 'or' bars:

	. xi: bootstrap, reps(500): xtmixed y sr_hat sal equity  i.industry
	> i.country i.year || ceo : if ceo != 136 & ceo!= 200

--Jeff
[email protected]
*
*   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