The message I haven't been able to send for a day...

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

The message I haven't been able to send for a day...

Marta García-Granero
I'm writing this message from scratch, since, with no apparent reason,
the message doesn't reach the SPSS list (my mail server says the
message has been sent OK, no error nor rejection message comes from
the list...)

It was a reply to a message by Gary Oliver, called "Graphing Multiple
Variables using the one command". Since it is still unreplied by other
listers, I'm going to give it a second try:

Hi Gary

Wednesday, December 13, 2006, 6:56:15 AM, You wrote:

GO> I am checking some of the variables in my correlation data to get a
GO> graph of the percentage of responses at each of the seven items on a
GO> Likert scale. I am using the following command:
GO> GRAPH
GO>   /BAR(SIMPLE)=PCT BY <NAME OF VARIABLE> .
GO> In this syntax I have to run the command for each variable separately.
GO> Is there a way of including all the variable names in the one command or
GO> must I have a separate command syntax for each variable.

Is this what you want?

DEFINE !GRAPHIT(!POS=!CMDEND).
!DO !I !IN (!1).
. GRAPH /BAR(SIMPLE)=PCT BY !I.
!DOEND.
!ENDDEFINE.

* Example of MACRO call *.
GET FILE='C:\Program Files\SPSS15\1991 U.S. General Social Survey.sav'.

!GRAPHIT race region happy.

Marta (still mystified)
Reply | Threaded
Open this post in threaded view
|

Re: The message I haven't been able to send for a day...

Marta García-Granero
Hi

GO> Thanks for msg. I have been unsuccessful substituting
GO> variables and runnning it. After waiting a while I have a message
GO> that 1.8 million something were happening so I terminated it. I
GO> will just go back to eyeballing the frequencies. Thanks for your
GO> suggestion I need training in advanced syntax!

I'm surprised the macro didn't work (I tried it before sending the
message). Can you give more information on your variables (names,
sample sizes), the exact macro call you are using and the error message?

GO> ------------------------
GO>       ,-_|\       Building H69, Office 437
GO>      /     \      Corner Codrington Street
GO>      \_,-._*      & Rose Street
GO>                   Darlington 2006
GO>            @      Australia
GO> --------------------------------------

Cute ASCII map!

>>>Wednesday, December 13, 2006, 6:56:15 AM, You wrote:
>>>
>>>I am checking some of the variables in my correlation data to get a
>>>graph of the percentage of responses at each of the seven items on
>>>a Likert scale. I am using the following command:

>>>GRAPH  /BAR(SIMPLE)=PCT BY <NAME OF VARIABLE> .

>>>In this syntax I have to run the command for each  variable
>>>separately. Is there a way of including all the variable names in
>>>the one command or must I have a separate command syntax for each
>>>variable.
>>>
>>>Is this what you want?
>>>
>>>DEFINE !GRAPHIT(!POS=!CMDEND).
>>>!DO !I !IN (!1).
>>>. GRAPH /BAR(SIMPLE)=PCT BY !I.
>>>!DOEND.
>>>!ENDDEFINE.
>>>
>>>* Example of MACRO call *.
>>>GET FILE='C:\Program Files\SPSS15\1991 U.S. General Social
>>>Survey.sav'.
>>>
>>>!GRAPHIT race region happy.

--
Regards,
Marta
Reply | Threaded
Open this post in threaded view
|

Extracting a count subdivided in two ways

Gary Oliver
Colleagues

I need some guidance on syntax that will create a matrix output with
along the top three groups (1-10, 11-20, 21-30) and down the left are
the values stratified (into less than one third, one third to two
thirds, more than two thirds). The groups along the top are a count of
the instances of the values for the cases. The values are standardised
decimals between 0 and 1. The My data comprises 30 rounds of data and
for each case I have a calculation for each case, for each round. In
terms of variables the the cases are numbered 001 to 369 and the values
from the experiment are obtained for each of the 30 rounds and are
labelled R1RESULT to R30RESULT. I assume there is a nested IF required
but I am stumped by both the IF syntax and the outut presentation. I
cannot find anything like this in the help or my v10 Syntax book.

TIA and Happy New Year/gary

Unit Co-ordinator for Business Information Systems
(A Postgraduate Master of Commerce and Master of Business unit)
School of Business
The University of Sydney
------------------------
      ,-_|\       Building H69, Office 437
     /     \      Corner Codrington Street
     \_,-._*      & Rose Street
                  Darlington 2006
           @      Australia
--------------------------------------
E-mail: [hidden email]
------------------------
Location details:
Travelling from Broadway, turn south off City Road
Navigate toward the Acquatic Centre
------------------------
University Map: http://db.auth.usyd.edu.au/directories/map/index.stm
University Website:
www.usyd.edu.au
Faculty Website
www.econ.usyd.edu.au
------------------------
Faculty Student Information Office
(Timetables, Special Consideration)
Merewether Building
Enter from City Road side
e-mail: [hidden email]
Phone: 9351-3076
----------------------------------
Executive Officer for Business Information Systems
Katy Roy
Room 347, Building H69
E-mail: [hidden email]
Phone: 9036 9432
---------------------------------