Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
european_social_survey [2012/10/23 13:31] filination [SPSS Syntax] |
european_social_survey [2014/05/25 21:07] (current) filination [Male items] |
||
---|---|---|---|
Line 43: | Line 43: | ||
- He strongly believes that people should care for nature. Looking after the environment is important to him. | - He strongly believes that people should care for nature. Looking after the environment is important to him. | ||
- Tradition is important to him. He tries to follow the customs handed down by his religion or his family. | - Tradition is important to him. He tries to follow the customs handed down by his religion or his family. | ||
- | - He seeks every chance 18 he can to have fun. It is important to him to do things that give him pleasure. | + | - He seeks every chance he can to have fun. It is important to him to do things that give him pleasure. |
</blockquote> | </blockquote> | ||
Line 206: | Line 206: | ||
(imptrad=v20) | (imptrad=v20) | ||
(impfun=v21). | (impfun=v21). | ||
+ | |||
+ | use all. | ||
missing values v1 to v21 (7,8,9). | missing values v1 to v21 (7,8,9). | ||
+ | recode v1 to v21 (1=6) (2=5) (3=4) (4=3) (5=2) (6=1) (7=7) (8=8) (9=9) into sv1 to sv21. | ||
+ | missing values sv1 to sv21 (7,8,9). | ||
- | COUNT C1=v1 to v21(1). | + | COUNT C1=sv1 to sv21(1). |
- | COUNT C2=v1 to v21(2). | + | COUNT C2=sv1 to sv21(2). |
- | COUNT C3=v1 to v21(3). | + | COUNT C3=sv1 to sv21(3). |
- | COUNT C4=v1 to v21(4). | + | COUNT C4=sv1 to sv21(4). |
- | COUNT C5=v1 to v21(5). | + | COUNT C5=sv1 to sv21(5). |
- | COUNT C6=v1 to v21(6). | + | COUNT C6=sv1 to sv21(6). |
- | COUNT C8=v1 to v21(SYSMIS). | + | COUNT C8=sv1 to sv21(SYSMIS). |
- | do IF (C1 GE 15 OR C2 GE 15 OR C3 GE 15 OR C4 GE 15 | + | do IF (C1 GE 12 OR C2 GE 12 OR C3 GE 12 OR C4 GE 12 |
- | OR C5 GE 15 OR C6 GE 15 OR C8 GE 5). | + | OR C5 GE 12 OR C6 GE 12 OR C8 GE 1). |
compute i=1 . | compute i=1 . | ||
else . | else . | ||
Line 225: | Line 229: | ||
exe. | exe. | ||
- | select if i=2. | ||
- | |||
- | recode v1 to v21 (1=6) (2=5) (3=4) (4=3) (5=2) (6=1) (7=7) (8=8) (9=9) into sv1 to sv21. | ||
- | |||
- | missing values sv1 to sv21 (7,8,9). | ||
Line 254: | Line 253: | ||
COMPUTE PO = MEAN(sv2, sv17) . | COMPUTE PO = MEAN(sv2, sv17) . | ||
EXECUTE . | EXECUTE . | ||
+ | |||
COMPUTE SEcenter = MEAN(sv5, sv14) - mrat . | COMPUTE SEcenter = MEAN(sv5, sv14) - mrat . | ||
EXECUTE . | EXECUTE . | ||
Line 274: | Line 274: | ||
COMPUTE POcenter = MEAN(sv2, sv17) - mrat . | COMPUTE POcenter = MEAN(sv2, sv17) - mrat . | ||
EXECUTE . | EXECUTE . | ||
+ | |||
+ | |||
compute open=mean (sv1, sv11, sv6, sv15). | compute open=mean (sv1, sv11, sv6, sv15). | ||
Line 284: | Line 286: | ||
compute conservC=mean (sv9, sv20, sv7, sv16, sv5, sv14) - mrat . | compute conservC=mean (sv9, sv20, sv7, sv16, sv5, sv14) - mrat . | ||
execute. | execute. | ||
+ | |||
+ | |||
+ | missing values gndr (9). | ||
+ | recode gndr (2=0) (1=1) into gender. | ||
+ | missing values yrbrn (7777, 8888, 9999). | ||
+ | compute age=2010-yrbrn. | ||
+ | execute. | ||
+ | missing values yrbrn (7777, 8888, 9999). | ||
+ | compute age=2010-yrbrn. | ||
+ | execute. | ||
+ | |||
+ | USE ALL. | ||
+ | COMPUTE filter_$=(i=2). | ||
+ | VARIABLE LABELS filter_$ 'i=2 (FILTER)'. | ||
+ | VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'. | ||
+ | FORMATS filter_$ (f1.0). | ||
+ | FILTER BY filter_$. | ||
+ | EXECUTE. | ||
+ | |||
+ | RELIABILITY | ||
+ | /VARIABLES=sv5 sv14 | ||
+ | /SCALE('security') ALL | ||
+ | /MODEL=ALPHA. | ||
+ | |||
+ | RELIABILITY | ||
+ | /VARIABLES=sv7 sv16 | ||
+ | /SCALE('conformity') ALL | ||
+ | /MODEL=ALPHA. | ||
+ | |||
+ | RELIABILITY | ||
+ | /VARIABLES=sv9 sv20 | ||
+ | /SCALE('tradition') ALL | ||
+ | /MODEL=ALPHA. | ||
+ | |||
+ | RELIABILITY | ||
+ | /VARIABLES=sv12 sv18 | ||
+ | /SCALE('benevolence') ALL | ||
+ | /MODEL=ALPHA. | ||
+ | |||
+ | RELIABILITY | ||
+ | /VARIABLES=sv3 sv8 sv19 | ||
+ | /SCALE('universalism') ALL | ||
+ | /MODEL=ALPHA. | ||
+ | |||
+ | RELIABILITY | ||
+ | /VARIABLES=sv1 sv11 | ||
+ | /SCALE('selfdirection') ALL | ||
+ | /MODEL=ALPHA. | ||
+ | |||
+ | RELIABILITY | ||
+ | /VARIABLES=sv6 sv15 | ||
+ | /SCALE('stimulation') ALL | ||
+ | /MODEL=ALPHA. | ||
+ | |||
+ | RELIABILITY | ||
+ | /VARIABLES=sv10 sv21 | ||
+ | /SCALE('hedonism') ALL | ||
+ | /MODEL=ALPHA. | ||
+ | |||
+ | RELIABILITY | ||
+ | /VARIABLES=sv4 sv13 | ||
+ | /SCALE('achievement') ALL | ||
+ | /MODEL=ALPHA. | ||
+ | |||
+ | RELIABILITY | ||
+ | /VARIABLES=sv2 sv17 | ||
+ | /SCALE('power') ALL | ||
+ | /MODEL=ALPHA. | ||
+ | |||
Line 305: | Line 376: | ||
/SCALE('conserv') ALL | /SCALE('conserv') ALL | ||
/MODEL=ALPHA. | /MODEL=ALPHA. | ||
- | | ||
- | missing values gndr (9). | ||
- | recode gndr (2=0) (1=1) into gender. | ||
- | missing values yrbrn (7777, 8888, 9999). | ||
- | compute age=2010-yrbrn. | ||
- | execute. | ||
</code> | </code> |