Date: Mon, 17 Mar 2003 11:04:48 -0600
Reply-To: Daniel Sharp <dmsharp@matcmadison.edu>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Daniel Sharp <dmsharp@matcmadison.edu>
Subject: Re: SAS Syntax vs SPSS Syntax
Content-Type: text/plain; charset=US-ASCII
I think this should do the same:
frequencies var=husband2 hus2kid curwrk2 moninc dadinc stepdinc
/missing=include .
exe.
I don't see any equivalent of the SAS "list" option in the sas syntax.
However, your colleague's table command doesn't request any
crosstabulations that I see (or does list automatically create the n-way
tables without the asterisk (*) between variable names?).
Regards,
Dan Sharp
>>> Jeff Stuewig <jstuewig@gmu.edu> 03/17/03 10:35AM >>>
A colleague asked me the following question and I'm just not
sure. I was wondering if anybody out there has an idea about how to do
this. Thanks.
>So here is what I would like to do, written in SAS syntax:
>
>proc freq data=dataset
>var husband2 hus2kid curwrk2 mominc dadinc stepdinc
>/list missing;
>run;
>
>(The above variables represent whether mom lives with dad, if the dad
>is bio or other dad to child, mom's work status, moms income, bio dads
>income, and other dad's income.)
>
>The SAS output from the above syntax provides a frequency that includes
>all of the possible combinations (meaning all possiblities which
>actually occur in the data) for the values of selected variables. ALL
>observations are included in the frequency, including system missing
>(.) and user-defined missing (.A or whathaveyou in SAS). Missing
>values add to the number of possible combinations, but the user can see
>clearly where the missing data is when variables are inter-related.
>Counts of occurances in the data are provided, as well as cummulative
>and total counts. The format is simple -- one line per possible
>combination and no complicated table layout! The most varables I have
>included in this type of frequency is 8-10, far beyond what a cross-tab
>can do in SPSS.
>
>Is there a way to do this in SPSS?
***********************************************
Jeff Stuewig
Department of Psychology MSN 3F5
George Mason University
Fairfax, VA. 22030
(703) 993-4252
jstuewig@gmu.edu
***********************************************
|