100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Examenopdracht $7.02
Add to cart

Exam (elaborations)

Examenopdracht

 74 views  0 purchase
  • Course
  • Institution

Volledige examenopdracht die als leidraad kan worden gebruikt bij het maken van de oefening.

Preview 2 out of 7  pages

  • November 26, 2019
  • 7
  • 2018/2019
  • Exam (elaborations)
  • Answers
avatar-seller
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;

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller clairevanroey. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $7.02. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

56326 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$7.02
  • (0)
Add to cart
Added