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]

From |
Will Hauser <whauseriii@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: using varlist wildcards in anova |

Date |
Sun, 04 Apr 2010 00:17:39 -0400 |

Hello all,

Will Phil Schumm wrote:

On Apr 3, 2010, at 6:25 PM, Phil Schumm wrote:On Apr 3, 2010, at 5:45 PM, Vineet Bhagwat wrote:Which is weird, because on my computer's Stata, "reg y t* " and anyother command using the asterisk works fine, just -anova- that seemsto throw the error for some reason. I'm using Stata9 on my computerif that clarifies anything.Well, at least that narrows it down. I no longer have a version ofStata 9 on my machine, so I can't look at this issue further.Perhaps someone with Stata 9 still available (or a better memory of-anova- under version 9) might be able to add something.One workaround would be the following (IIRC, -unab- predated Stata 9): unab t: t* anova y `t' though upgrading, if possible, would clearly be preferable.Ok, I must confess that this made me a bit curious, especially sincemy previous statementOn Apr 3, 2010, at 5:21 PM, Phil Schumm wrote:Regardless, this isn't due to -anova-, but rather is a function ofhow Stata is parsing the command line.was clearly incorrect (I also misspoke when I said "parsing thecommand line" -- what I should have said was "expanding thevarlist"). Instead, this *does* have to do with -anova-'s syntax. Ipulled an old copy of Stata 9, and sure enough, I get exactly thebehavior Vineet describes.Unfortunately, in Stata 9 -anova- was a built-in command, so we can'tlook at the source. However, the syntax diagramanova varname [term [/] [term [/] ...]] [if] [in] [weight] [, options] where term is of the form varname[{*||}varname[...]]suggests that -anova- was using its own approach to interpret the listof model terms, and although one could specify a model as a simplelist of variables, -anova- under Stata 9 evidently didn't supportvarname globbing.In sum, the workaround I gave above is your only option under Stata 9. -- Phil * * 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/ --- avast! Antivirus: Inbound message clean. Virus Database (VPS): 100403-1, 04/03/2010 Tested on: 4/3/2010 11:46:56 PM avast! - copyright (c) 1988-2010 ALWIL Software. http://www.avast.com

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

**References**:**st: using varlist wildcards in anova***From:*Vineet Bhagwat <vineet.bhagwat@gmail.com>

**Re: st: using varlist wildcards in anova***From:*Phil Schumm <pschumm@uchicago.edu>

**Re: st: using varlist wildcards in anova***From:*Vineet Bhagwat <vineet.bhagwat@gmail.com>

**Re: st: using varlist wildcards in anova***From:*Phil Schumm <pschumm@uchicago.edu>

**Re: st: using varlist wildcards in anova***From:*Vineet Bhagwat <vineet.bhagwat@gmail.com>

**Re: st: using varlist wildcards in anova***From:*Phil Schumm <pschumm@uchicago.edu>

**Re: st: using varlist wildcards in anova***From:*Phil Schumm <pschumm@uchicago.edu>

- Prev by Date:
**Re: st: using varlist wildcards in anova** - Next by Date:
**Re: st: RE: ivreg2 and xtoverid error** - Previous by thread:
**Re: st: using varlist wildcards in anova** - Next by thread:
**st: Power Analysis** - Index(es):