(no subject)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

(no subject)

Valerie Guille
Hello everybody,

I am new in the “SPSS syntax word” and I am having trouble with a syntax
that I wrote based on a command from Andy Field’s book.
When I type in the following syntax:

MANOVA
  attract BY gender (0 1) alcohol (1 3)
/DESIGN = gender WITHIN alcohol (1) gender WITHIN alcohol (2) gender
WITHIN alcohol (3)/DESIGN = alcohol WITHIN gender (1) alcohol WITHIN gender (2)
/PRINT
        CELL INFO
        SIGNIF ( UNI MULT AVERF HF GG).

I have the following error message:

>Error # 12096 in column 7.  Text: INFO
>There is an error in the PRINT or NOPRINT subcommand.
>This command not executed.


 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
The default error term in MANOVA has been changed from WITHIN CELLS to
WITHIN+RESIDUAL.  Note that these are the same for all full factorial
designs.

But when I run the syntax provided in the CD rom that comes with the book
I have no problem to run the syntax (below syntax from the CD rom):
MANOVA
  attract BY gender (0 1) alcohol(1 3)
/DESIGN = gender WITHIN alcohol(1) gender WITHIN alcohol (2) gender WITHIN
alcohol (3)/DESIGN = alcohol WITHIN gender (1) alcohol WITHIN gender (2)
/PRINT
        CELLINFO
        SIGNIF( UNIV MULT AVERF HF GG ).

Could someone explain to me why the PRINT command works in the second
syntax and not in the one I typed in? Both commands look the same to me.
Is there something I missed?

One omre question, could someone recommand me a book or website where I
can learn how to write syntax. I am very very beginner... So I need
something basic to satrt with.

Thanks in advance,

valerie

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

(no subject)

Jason Burke
Hi Valerie,

At first glance there appears to be no difference, however the error
message (fortunately) gives some very good pointers where to look. It
refers specifically to the PRINT subcommand.

Now, careful examination of the error message indicates there is a
problem arising from the term INFO!! If you were to remove the space
between CELL and INFO, the syntax would work.

MANOVA
   attract BY gender (0 1) alcohol (1 3)
 /DESIGN = gender WITHIN alcohol (1) gender WITHIN alcohol (2) gender
WITHIN alcohol (3)
 /DESIGN = alcohol WITHIN gender (1) alcohol WITHIN gender (2)
 /PRINT CELLINFO
       SIGNIF( UNIV MULT AVERF HF GG ) .

If you highlight MANOVA (the command) in your syntax and press the F1
key, you will be presented a syntax diagram. Terms enclosed in square
brackets [] incated they are optional.

Unfortunately there is no dialog for MANOVA so you cannot start there
and look at the generated syntax to build an understanding.

My suggestion would be to do a short course in Command Syntax through
the University or SPSS.

Cheers,


Jason

On 3/23/08, Valerie Guille <[hidden email]> wrote:

> Hello everybody,
>
> I am new in the "SPSS syntax word" and I am having trouble with a syntax
> that I wrote based on a command from Andy Field's book.
> When I type in the following syntax:
>
> MANOVA
>  attract BY gender (0 1) alcohol (1 3)
> /DESIGN = gender WITHIN alcohol (1) gender WITHIN alcohol (2) gender
> WITHIN alcohol (3)/DESIGN = alcohol WITHIN gender (1) alcohol WITHIN gender (2)
> /PRINT
>        CELL INFO
>        SIGNIF ( UNI MULT AVERF HF GG).
>
> I have the following error message:
>
> >Error # 12096 in column 7.  Text: INFO
> >There is an error in the PRINT or NOPRINT subcommand.
> >This command not executed.
>
>
>  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> The default error term in MANOVA has been changed from WITHIN CELLS to
> WITHIN+RESIDUAL.  Note that these are the same for all full factorial
> designs.
>
> But when I run the syntax provided in the CD rom that comes with the book
> I have no problem to run the syntax (below syntax from the CD rom):
> MANOVA
>  attract BY gender (0 1) alcohol(1 3)
> /DESIGN = gender WITHIN alcohol(1) gender WITHIN alcohol (2) gender WITHIN
> alcohol (3)/DESIGN = alcohol WITHIN gender (1) alcohol WITHIN gender (2)
> /PRINT
>        CELLINFO
>        SIGNIF( UNIV MULT AVERF HF GG ).
>
> Could someone explain to me why the PRINT command works in the second
> syntax and not in the one I typed in? Both commands look the same to me.
> Is there something I missed?
>
> One omre question, could someone recommand me a book or website where I
> can learn how to write syntax. I am very very beginner... So I need
> something basic to satrt with.
>
> Thanks in advance,
>
> valerie
>
> =====================
> To manage your subscription to SPSSX-L, send a message to
> [hidden email] (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD
>

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD