1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
72
73 ********DATABEHEER*********
74 ***************************/
75
76
77
78 *Nodige variabelen nakijken en wegschrijven naar nieuw databestand.
79 *******************************************************************;
80
81
82 data ess.ESS4;
83 set "/folders/myfolders/ess4e04_2.sas7bdat" (keep = CNTRY JBSPV WKDCORGA IORGACT SCLMEET
84 SCLACT HAPPY DSCRGRP MARITALA);
85 if CNTRY = "DE";
86 run;
NOTE: There were 56752 observations read from the data set /folders/myfolders/ess4e04_2.sas7bdat.
NOTE: The data set ESS.ESS4 has 2751 observations and 9 variables.
NOTE: DATA statement used (Total process time):
real time 5.42 seconds
cpu time 3.14 seconds
87
88
89
90 proc freq data = ess.ESS4;
91 tables CNTRY JBSPV WKDCORGA IORGACT SCLMEET SCLACT HAPPY DSCRGRP MARITALA;
92 run;
NOTE: There were 2751 observations read from the data set ESS.ESS4.
NOTE: PROCEDURE FREQ used (Total process time):
real time 1.05 seconds
cpu time 0.77 seconds
93
94 proc freq data = ess.ESS4;
95 tables CNTRY JBSPV WKDCORGA IORGACT SCLMEET SCLACT HAPPY DSCRGRP MARITALA;
96 format CNTRY JBSPV WKDCORGA IORGACT SCLMEET SCLACT HAPPY DSCRGRP MARITALA;
97 run;
NOTE: There were 2751 observations read from the data set ESS.ESS4.
NOTE: PROCEDURE FREQ used (Total process time):
real time 0.51 seconds
cpu time 0.45 seconds
98
99
100
101 data work.ess4;
102 set ess.ess4;
103 run;
NOTE: There were 2751 observations read from the data set ESS.ESS4.
NOTE: The data set WORK.ESS4 has 2751 observations and 9 variables.
NOTE: DATA statement used (Total process time):
real time 0.08 seconds
cpu time 0.05 seconds
104
105
106
107 *Nieuwe variabelen aanmaken.
108 ****************************;
109
110
111 data ess4;
112 set ess4;
113
114 DSCRGRPRevDum = (DSCRGRP = 2);
115 if DSCRGRP < 0 then DSCRGRPRevDum = .;
116 labelDSCRGRPRevDum = "Not member of a group discriminated against in this country -
116 ! dummy";
117
118 run;
, NOTE: There were 2751 observations read from the data set WORK.ESS4.
NOTE: The data set WORK.ESS4 has 2751 observations and 10 variables.
NOTE: DATA statement used (Total process time):
real time 0.06 seconds
cpu time 0.05 seconds
119
120
121
122 data ess4;
123 set ess4;
124
125 JBSPVDum = (JBSPV = 1);
126 if JBSPV < 0 then JBSPVDum = .;
127 labelJBSPVDum = "Responsible for supervising other employees - dummy";
128
129 run;
NOTE: There were 2751 observations read from the data set WORK.ESS4.
NOTE: The data set WORK.ESS4 has 2751 observations and 11 variables.
NOTE: DATA statement used (Total process time):
real time 0.07 seconds
cpu time 0.04 seconds
130
131
132
133 data ess4;
134 set ess4;
135
136 RLTDum = (MARITALA = 1 OR MARITALA = 2);
137 if MARITALA < 0 then RLTDum = .;
138
139 label RLTDum = "In a relationship - dummy";
140
141 run;
NOTE: There were 2751 observations read from the data set WORK.ESS4.
NOTE: The data set WORK.ESS4 has 2751 observations and 12 variables.
NOTE: DATA statement used (Total process time):
real time 0.08 seconds
cpu time 0.06 seconds
142
143
144
145 proc freq data = ess4;
146 tables DSCRGRPRevDum JBSPVDum RLTDum;
147 run;
NOTE: There were 2751 observations read from the data set WORK.ESS4.
NOTE: PROCEDURE FREQ used (Total process time):
real time 0.16 seconds
cpu time 0.14 seconds
148
149
150
151 ********** DEEL 1: MEETMODEL **********
152 ***************************************
153
154
155
156 *Eerste schatting met ML.
157 *************************;
158
159
160 proc calis data = ESS4 kurtosis covariance modification;
161
162 lineqs
163 JBSPVDum= LX1F1 F1 + E1,
164 WKDCORGA= LX2F1 F1 + E2,
165 IORGACT= LX3F1 F1 + E3,
166 SCLMEET= LX4F2 F2 + E4,
167 SCLACT= LX5F2 F2 + E5,
168 HAPPY= LX6F3 F3 + E6,
169 DSCRGRPRevDum= LX7F3 F3 + E7;
72
73 ********DATABEHEER*********
74 ***************************/
75
76
77
78 *Nodige variabelen nakijken en wegschrijven naar nieuw databestand.
79 *******************************************************************;
80
81
82 data ess.ESS4;
83 set "/folders/myfolders/ess4e04_2.sas7bdat" (keep = CNTRY JBSPV WKDCORGA IORGACT SCLMEET
84 SCLACT HAPPY DSCRGRP MARITALA);
85 if CNTRY = "DE";
86 run;
NOTE: There were 56752 observations read from the data set /folders/myfolders/ess4e04_2.sas7bdat.
NOTE: The data set ESS.ESS4 has 2751 observations and 9 variables.
NOTE: DATA statement used (Total process time):
real time 5.42 seconds
cpu time 3.14 seconds
87
88
89
90 proc freq data = ess.ESS4;
91 tables CNTRY JBSPV WKDCORGA IORGACT SCLMEET SCLACT HAPPY DSCRGRP MARITALA;
92 run;
NOTE: There were 2751 observations read from the data set ESS.ESS4.
NOTE: PROCEDURE FREQ used (Total process time):
real time 1.05 seconds
cpu time 0.77 seconds
93
94 proc freq data = ess.ESS4;
95 tables CNTRY JBSPV WKDCORGA IORGACT SCLMEET SCLACT HAPPY DSCRGRP MARITALA;
96 format CNTRY JBSPV WKDCORGA IORGACT SCLMEET SCLACT HAPPY DSCRGRP MARITALA;
97 run;
NOTE: There were 2751 observations read from the data set ESS.ESS4.
NOTE: PROCEDURE FREQ used (Total process time):
real time 0.51 seconds
cpu time 0.45 seconds
98
99
100
101 data work.ess4;
102 set ess.ess4;
103 run;
NOTE: There were 2751 observations read from the data set ESS.ESS4.
NOTE: The data set WORK.ESS4 has 2751 observations and 9 variables.
NOTE: DATA statement used (Total process time):
real time 0.08 seconds
cpu time 0.05 seconds
104
105
106
107 *Nieuwe variabelen aanmaken.
108 ****************************;
109
110
111 data ess4;
112 set ess4;
113
114 DSCRGRPRevDum = (DSCRGRP = 2);
115 if DSCRGRP < 0 then DSCRGRPRevDum = .;
116 labelDSCRGRPRevDum = "Not member of a group discriminated against in this country -
116 ! dummy";
117
118 run;
, NOTE: There were 2751 observations read from the data set WORK.ESS4.
NOTE: The data set WORK.ESS4 has 2751 observations and 10 variables.
NOTE: DATA statement used (Total process time):
real time 0.06 seconds
cpu time 0.05 seconds
119
120
121
122 data ess4;
123 set ess4;
124
125 JBSPVDum = (JBSPV = 1);
126 if JBSPV < 0 then JBSPVDum = .;
127 labelJBSPVDum = "Responsible for supervising other employees - dummy";
128
129 run;
NOTE: There were 2751 observations read from the data set WORK.ESS4.
NOTE: The data set WORK.ESS4 has 2751 observations and 11 variables.
NOTE: DATA statement used (Total process time):
real time 0.07 seconds
cpu time 0.04 seconds
130
131
132
133 data ess4;
134 set ess4;
135
136 RLTDum = (MARITALA = 1 OR MARITALA = 2);
137 if MARITALA < 0 then RLTDum = .;
138
139 label RLTDum = "In a relationship - dummy";
140
141 run;
NOTE: There were 2751 observations read from the data set WORK.ESS4.
NOTE: The data set WORK.ESS4 has 2751 observations and 12 variables.
NOTE: DATA statement used (Total process time):
real time 0.08 seconds
cpu time 0.06 seconds
142
143
144
145 proc freq data = ess4;
146 tables DSCRGRPRevDum JBSPVDum RLTDum;
147 run;
NOTE: There were 2751 observations read from the data set WORK.ESS4.
NOTE: PROCEDURE FREQ used (Total process time):
real time 0.16 seconds
cpu time 0.14 seconds
148
149
150
151 ********** DEEL 1: MEETMODEL **********
152 ***************************************
153
154
155
156 *Eerste schatting met ML.
157 *************************;
158
159
160 proc calis data = ESS4 kurtosis covariance modification;
161
162 lineqs
163 JBSPVDum= LX1F1 F1 + E1,
164 WKDCORGA= LX2F1 F1 + E2,
165 IORGACT= LX3F1 F1 + E3,
166 SCLMEET= LX4F2 F2 + E4,
167 SCLACT= LX5F2 F2 + E5,
168 HAPPY= LX6F3 F3 + E6,
169 DSCRGRPRevDum= LX7F3 F3 + E7;