histograms

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

histograms

Keval Khichadia
Hi ,
I am trying to dispaly the results of course evaluations for several instructors using histograms. There are several questions and the responses are on a 1-5 scale from strongly disagree to strongly agree. I need a separate histogram for each question for each instructor.
The data are set up something like this:
Instructor     Question1     Student  
A                      1                      1   
A                      4                      2
A                      4                      3
A                      5                      4
A                      4                      5
B                       3                     1
B                       3                     2
B                       3                     3
B                       4                     4
B                       4                     5
C                        5                     1
C                        5                     2
C                        5                     3
C                        5                     4
C                        4                     5
Is there syntax that can do this? I am having no luck playing around with the menu, and I would prefer to use syntax. Thank you for any help.




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

Re: histograms

Maguin, Eugene
Keval,

You need to do two things. The first is a data rearrangement using
Casestovars. The possibly tricky element is that the rearrangement occurs
within instructor. Read up on this command and note the use of the split
file command. Also note the defaut on how variables are named and how that
default can be changed.

Here's something else that is critical. Is the variable question the id of
the question or is it the response to the question that is pointed to by
another variable. The way you present your data says to me that the former
is true. And that is a serious problem. However, I'm going to assume that
the latter is actually true and you just haven't mentioned that point. I now
assume that the variable question is the id number of the question and the
variable that holds the response to the question whose id is the value of
the variable question is named 'rating'. I acknowledge that the last
sentence is confusing. But, it is just a rearrangement of the latter part of
the question posed above.

Sort cases by instructor student question.
Split files by instructor.
Casestovars id=student/index question.

Frequencies rating.1 to rating.x/histogram.

Split files off.

Presumably, the same structure can be use with one of the older graphing
commands if that is what you want. Can it be used with GPL? I don't know but
somebody will.

Gene Maguin

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