can't create histogram in spss 16 student version

Moderators: statman, Analyst Techy, andris, Fierce, GerineL, Smash

newguest

can't create histogram in spss 16 student version

Postby newguest » Tue Aug 12, 2008 4:51 am

does any one has problem that they can' create histogram in spss 16 sv. i tried to create and it come with error that command not execute...
statman
Administrator
Posts: 2750
Joined: Tue Jun 12, 2007 12:08 pm
Location: Florida, USA

Postby statman » Tue Aug 12, 2008 12:40 pm

How did you do the create and what is the error
See the note below

NOTE: Please read the Posting Guidelines and always tell us your OS, the SPSS version and information about your study and data!

Statman
Statistical Services
jignesh
Posts: 1
Joined: Wed Jul 30, 2008 6:10 am

Postby jignesh » Wed Aug 13, 2008 7:31 am

i use sample file name "1991 us" from spss and click on graphs and chart builder and put sex as x-axis and happines as y-axis. i got error that command will not be execute.

[/img]
statman
Administrator
Posts: 2750
Joined: Tue Jun 12, 2007 12:08 pm
Location: Florida, USA

Postby statman » Wed Aug 13, 2008 12:47 pm

sex as x-axis and happines as y-axis
that is because this isn't a histogram. Using a bar I have

Code: Select all

* Chart Builder.
GGRAPH
  /GRAPHDATASET NAME="graphdataset" VARIABLES=sex happy MISSING=LISTWISE REPORTMISSING=NO
  /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
  SOURCE: s=userSource(id("graphdataset"))
  DATA: sex=col(source(s), name("sex"), unit.category())
  DATA: happy=col(source(s), name("happy"), unit.category())
  GUIDE: axis(dim(1), label("Respondent's Sex"))
  GUIDE: axis(dim(2), label("General Happiness"))
  SCALE: cat(dim(1), include("1", "2"))
  SCALE: cat(dim(2), include("1", "2", "3"))
  ELEMENT: interval(position(sex*happy), shape.interior(shape.square))
END GPL.

Who is online

Users browsing this forum: No registered users and 1 guest

cron