display blank frequencies

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

display blank frequencies

Vivek Kurup
Hello,

I am trying to figure out how to view frequencies for all codes of a single mention variable, even when there is no mention for some codes.

Thanks,
Vivek
Reply | Threaded
Open this post in threaded view
|

Re: display blank frequencies

Beadle, ViAnn
Custom Tables will do this for you; as will the Chart Builder if you want your frequencies in a chart.

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Vivek Kurup
Sent: Thursday, August 10, 2006 1:03 PM
To: [hidden email]
Subject: display blank frequencies

Hello,

I am trying to figure out how to view frequencies for all codes of a single mention variable, even when there is no mention for some codes.

Thanks,
Vivek
Reply | Threaded
Open this post in threaded view
|

Re: display blank frequencies

Richard Ristow
In reply to this post by Vivek Kurup
At 02:03 PM 8/10/2006, Vivek Kurup wrote:

>I am trying to figure out how to view frequencies for all codes of a
>single mention variable, even when there is no mention for some codes.

ViAnn Beadle gave what's probably the best answer. There's also the
famous "tiny weight" method. If your variable is Cat_Var and has codes
1 to 7; and the data can be read with file handle My_Data; do this (not
tested):

INPUT PROGRAM.
.  NUMERIC Ltl_Wght (F5.3).
.  LOOP Cat_Var = 1 TO 7.
.     COMPUTE Ltl_Wght = 1E-3.
.     END CASE.
.  END LOOP.
END FILE.
END INPUT PROGRAM.
ADD FILES
    /FILE = *
    /FILE = My_Data.
RECODE Ltl_Wght (SYSMIS = 1).
WEIGHT BY Ltl_Wght.
FREQUENCIES Cat_Var.