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

 From "Carlo Lazzaro" To Subject st: R: variable not found? Date Mon, 24 Oct 2011 10:04:18 +0200

Dear Paul,
all works fine for me with Stata 9.2/SE.
I can replicate the error you reported on by "forgetting" that Stata is
case-sensitive (please, see at the bottom of the following Stata slip).
HTH and Kindest Regards,
Carlo
-----------------------------------------------------------------------
manova  motiv aspire algebra geom= group

Number of obs =       8

W = Wilks' lambda      L = Lawley-Hotelling trace
P = Pillai's trace     R = Roy's largest root

Source |  Statistic     df   F(df1,    df2) =   F   Prob>F
-----------+--------------------------------------------------
group | W   0.4949      1     4.0     3.0     0.77 0.6120
e
| P   0.5051            4.0     3.0     0.77 0.6120
e
| L   1.0205            4.0     3.0     0.77 0.6120
e
| R   1.0205            4.0     3.0     0.77 0.6120
e
|--------------------------------------------------
Residual |                 6
-----------+--------------------------------------------------
Total |                 7
--------------------------------------------------------------
e = exact, a = approximate, u = upper bound on F

. mvreg motiv aspire algebra geom = group

Equation          Obs  Parms        RMSE    "R-sq"          F        P
----------------------------------------------------------------------
motiv               8      2    16.44815    0.0599   .3823938   0.5591
aspire              8      2    12.11901    0.0090   .0543859   0.8234
algebra             8      2    13.90122    0.1842   1.354984   0.2886
geom                8      2    11.11769    0.1715   1.241692   0.3078

----------------------------------------------------------------------------
--
|      Coef.   Std. Err.      t    P>|t|     [95% Conf.
Interval]
-------------+--------------------------------------------------------------
--
motiv        |
group |  -7.428001   12.01203    -0.62   0.559    -36.82039
21.96439
_cons |      55.73   9.496346     5.87   0.001     32.49328
78.96672
-------------+--------------------------------------------------------------
--
aspire       |
group |  -2.063999   8.850472    -0.23   0.823    -23.72032
19.59233
_cons |      73.02   6.996913    10.44   0.000     55.89917
90.14083
-------------+--------------------------------------------------------------
--
algebra      |
group |  -11.81733   10.15202    -1.16   0.289    -36.65842
13.02376
_cons |   62.40333   8.025874     7.78   0.000     42.76473
82.04194
-------------+--------------------------------------------------------------
--
geom         |
group |  -9.047335    8.11921    -1.11   0.308    -28.91433
10.81966
_cons |   78.57333   6.418799    12.24   0.000      62.8671
94.27957
----------------------------------------------------------------------------
--

. test  group

( 1)  [motiv]group = 0
( 2)  [aspire]group = 0
( 3)  [algebra]group = 0
( 4)  [geom]group = 0

F(  4,     6) =    1.53
Prob > F =    0.3049

. test  GROUP
r(111);
-----------------------------------------------------------------------
-----Messaggio originale-----
Da: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Per conto di Paul Burkander
Inviato: lunedì 24 ottobre 2011 3.54
A: statalist@hsphsun2.harvard.edu

Hi all,

I'm trying to help my wife do some stata homework, and we've run into
some odd behavior.

Below is a sample of the data.  She's supposed to do a manova of
MOTIV,ASPIRE,ALGEBRA,GEOM, on GROUP , then mvreg, then test the
restriction that the coefficients on GROUP are zero in all four
equations.  After doing the manova and mvreg, we typed test GROUP, but

Any ideas?  Perhaps we're doing something dumb?  She entered the data
by pasting into the data editor.  We're using Stata 11 SE and I just
did a full update.

Thanks, Paul

MOTIV,ASPIRE,ALGEBRA,GEOM,GROUP
74.31,78.57,68.59,78.57,1
27.15,61.91,37.15,71.43,1
64.31,90.48,67.16,83.34,1
40.01,64.29,48.59,59.53,1
35.73,59.53,31.44,54.76,1
55.73,83.34,60.02,85.72,0
52.87,64.29,62.88,69.05,0
58.59,71.43,64.31,80.95,0
*
*   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/