Here is what I get…
Elio Spinello, EdD RPM Consulting, LLC 27943 Seco Canyon Rd #320 Santa Clarita, CA 91350-3872 Office: 818-831-7607 Cell: 818-570-3546 From: pspp-users-bounces+espinello=rpmconsulting....@gnu.org <pspp-users-bounces+espinello=rpmconsulting....@gnu.org> On Behalf Of Ben Pfaff Sent: Monday, November 28, 2022 10:48 AM To: pspp-users <pspp-users@gnu.org> Subject: Re: will someone please run this syntax for me on SPSS? I got some help on this. Thanks, everyone! On Sun, Nov 27, 2022 at 9:14 AM Ben Pfaff <b...@cs.stanford.edu <mailto:b...@cs.stanford.edu> > wrote: Hi! I'm trying to figure out what CTABLES should do in a corner case. If there's someone out there with SPSS who would run the following syntax and send me the output, I'd very much appreciate it. Thanks, Ben. DATA LIST LIST NOTABLE/gender region weight. VALUE LABELS gender 1 'M' 2 'F' / region 1 'NE' 2 'MW' 3 'S' 4 'W'. WEIGHT BY weight. BEGIN DATA. 1 1 607 1 2 719 1 3 1094 1 4 712 2 1 802 2 2 935 2 3 1296 2 4 834 END DATA. CTABLES /TABLE = gender [COUNT, COLPCT] BY region /SLABELS POSITION=ROW /CATEGORIES VARIABLES = region TOTAL = YES.