Tables into CTables

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

Alpha
Posts: 1
Joined: Wed Jan 03, 2018 10:43 am

Tables into CTables

Postby Alpha » Wed Jan 03, 2018 4:07 pm

It is possible to change this define (Tables) into define (CTABLES)?

define !SIMPLE (!pos !cmdend).
TABLES
/FORMAT ZERO MISSING('')
/ptotal $t1 'TOTAL'
/GBASE=CASES
/TABLE $t1 + !1 by !demography1
/STATISTICS
count($t1 (f5.0)'' )
cpct(!1(pct5.0)'' : !demography2)
/title ''
/caption ''.
!enddefine.


DEFINE !demography1 ()
x + GENDER + AGE.
!ENDDEFINE.

DEFINE !demography2 ()
x GENDER AGE.
!ENDDEFINE.
statman
Administrator
Posts: 2750
Joined: Tue Jun 12, 2007 12:08 pm
Location: Florida, USA

Re: Tables into CTables

Postby statman » Thu Jan 04, 2018 2:10 pm

Takes some syntax knowledge but if you have CTables then why?

But ................
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

Who is online

Users browsing this forum: No registered users and 1 guest

cron