Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to have frequencies by group?

4,112 views
Skip to first unread message

zhon...@aol.com

unread,
Jan 24, 2008, 11:22:50 AM1/24/08
to
Any help will be appreciated greatly.
How to add "by group" to the following syntax so that we can have
frequency tables for different groups at one click.
FREQUENCIES
VARIABLES=sex race
/ORDER= ANALYSIS.
Execute.

peter m sopp

unread,
Jan 24, 2008, 12:32:09 PM1/24/08
to
zhon...@aol.com schrieb:
SORT CASES BY xyz.
SPLIT FILE Layered BY xyz.
Peter

Bruce Weaver

unread,
Jan 24, 2008, 1:08:21 PM1/24/08
to
On Jan 24, 12:32 pm, peter m sopp <p...@gmx.net> wrote:
> zhong8...@aol.com schrieb:> Any help will be appreciated greatly.

Depending on what percentages you want to report etc, CROSSTABS will
also work. E.g., for just the counts, try this:

crosstabs sex race by group .

You have to watch out for cases that do not have complete data for all
variables in the crosstabs though. IIRC, they get excluded entirely.

--
Bruce Weaver
bwe...@lakeheadu.ca
www.angelfire.com/wv/bwhomedir
"When all else fails, RTFM."

zhon...@aol.com

unread,
Jan 24, 2008, 3:23:19 PM1/24/08
to
Many thanks to Peter and Bruce. I have tried. It is so cool.
You guys are so nice and so great. But how to end "split file"?
Frank

Bruce Weaver

unread,
Jan 24, 2008, 3:29:54 PM1/24/08
to

split file off.

When I turn on a split file, I usually immediately type the "split
file off" command on the next line, and then fill in the lines between
the two. I do that because it's easy to forget to turn it off later
(much like forgetting to end a loop in some programming languages).

zhon...@aol.com

unread,
Jan 24, 2008, 7:16:04 PM1/24/08
to
Dear Peter and Bruce,

I have found the answer: SPLIT FILE OFF.

Thank you guys anyway!

Frank

peter m sopp

unread,
Jan 25, 2008, 3:36:07 AM1/25/08
to
Bruce Weaver schrieb:

... or CTABLES (additional money for SPSS) for nice tabulation ;-)
Peter

zhon...@aol.com

unread,
Jan 25, 2008, 10:59:39 AM1/25/08
to

Many thanks to Peter and Bruce again!
Bruce: I am sorry! I did not see your reply at first.
---Frank
0 new messages