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]

st: lincom intolerant of the variable name "d"


From   "Airey, David C" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: lincom intolerant of the variable name "d"
Date   Sat, 26 Jun 2010 21:17:22 -0500

.

Maybe you are right, but this really shouldn't happen here, because this is not a time series data set, and the D operator is put in front of the variable name. I sent a note to tech support.

<<>>

Possibly because Stata is interpreting your "d" as the differencing operator
in its time series commands?  See -help tsvarlist-  where Remark #4 states
that although the operator is "D.", lower case is also acceptable.

Phil

Philip Ryan
Professor and Director
Data Management & Analysis Centre
UNiversity orf Adelaide


> .
> 
> After use of anova and margins, I got this error:
> 
> 
> . test 1.d = 2.d
> 
> ( 1)  1bn.d - 2.d = 0
> 
>           chi2(  1) =   18.46
>         Prob > chi2 =    0.0000
> 
> . lincom 1.d - 2.d
> d-2:  operator invalid
> r(198);
> 
> And then, changing the variable name "d" to "drug", I got this:
> 
> . test 1.drug = 2.drug
> 
> ( 1)  1bn.drug - 2.drug = 0
> 
>           chi2(  1) =   18.46
>         Prob > chi2 =    0.0000
> 
> . lincom 1. drug - 2. drug
> 
> ( 1)  1bn.drug - 2.drug = 0
> 
> ------------------------------------------------------------------------------
>             |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
> -------------+----------------------------------------------------------------
>         (1) |        1.8   .4189935     4.30   0.000     .9787878    2.621212
> ------------------------------------------------------------------------------
> 
> Why would the variable name "d" be a problem?
> 
> -Dave
> 

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