Thursday, 4 June 2009

The AMAZING TABLES of SPSS

Here are some examples in SYNTAX:

****don't forget to create a variable called t which is equal to 1*********.

COMPUTE t=1.


TABLE
/ftot t 'Total'
/tab (q405a +q405b +q405c +q405d +q405e +q405f +q405g +q405h +q405i
+q405j +q405k +q405l) by place +t
/title "danger signs pregnancy"
/sta cpct ('%' (f5.1): place) count.

TABLE
/ftot t 'Total'
/tab (q406a +q406b +q406c +q406d +q406e +q406f +q406g) by place +t
/title "dduring delivery"
/sta cpct ('%' (f5.1): place) count.

TABLE
/ftot t 'Total'
/tab (q407a +q407b +q407c +q407d +q407e +q407f +q407g ) by place +t
/title "during post partum period"
/sta cpct ('%' (f5.1): place) count.


TABLE
/ftot t 'Total'
/tab (q408a +q408b +q408c +q408d +q408e +q408f +q408g +q408h +q408i
+q408j +q408k +q408l) by place +t
/title "danger signs immediately after birth of child (1 hour)"
/sta cpct ('%' (f5.1): place) count.

TABLE
/ftot t 'Total'
/tab (q409a +q409b +q409c +q409d +q409e +q409f +q409g +q409h +q409i
+q409j +q409k +q409l + q409m + q409n)by place +t
/title "danger signs immediately after birth of child (7 days)"
/sta cpct ('%' (f5.1): place) count.


TAB
/ftot t 'total'
/mrgroup anc2 q805a q805b q805c
/tab anc2 + t by district + district>place + t
/sta cpct((f5.1):district place).

No comments: