Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: using varlist wildcards in anova


From   Vineet Bhagwat <[email protected]>
To   [email protected]
Subject   Re: st: using varlist wildcards in anova
Date   Sat, 3 Apr 2010 17:45:15 -0400

The actual error is "t ambiguous abbreviation"....I just wrote x
mistakenly because that used to be my dummy variable name. Sorry about
that.

So I guess I'm wondering why the command

"anova y t* " won't work, it gives the error "t ambiguous abbreviation"

I created a smaller test dataset with only 3 variables, y, t1991, and
t1992 and get the same error, so I don't think it's stemming from the
dataset but how anova works.

Vineet

On Sat, Apr 3, 2010 at 5:12 PM, Phil Schumm <[email protected]> wrote:
> On Apr 3, 2010, at 3:27 PM, Vineet Bhagwat wrote:
>>
>> I wish to run the anova command but without typing out the names of all
>> the variables in the model.  For example instead of:
>>
>> "anova y t1992 t1993 t1994 t1995"
>>
>> I want to do
>>
>> "anova y t* "
>>
>> but it seems I can't use the asterix wildcard with the anova command
>> because I get the error: "x ambiguous abbreviation".
>
>
> You didn't get the error "x ambiguous abbreviation" from typing the command
> above (i.e., there is no variable beginning with x in your -anova- command).
>  Moreover, the command
>
>    anova y t*
>
> will work fine if you have variables named y, t1992, t1993, t1994 and t1995
> in your dataset.
>
> The error you report indicates that you entered a command using x as a
> variable name, but you have more than one variable in your dataset that
> begins with x.  If you want people to explain what an error message means,
> make sure to include exactly what you typed that produced the error message
> (i.e., by cutting and pasting the command and error message from the Results
> window).
>
>
> -- 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/
>

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