Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

Examenopdracht

Rating
4.0
(1)
Sold
1
Pages
10
Uploaded on
26-11-2019
Written in
2018/2019

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

Institution
Course

Content preview

/********** DEEL 1: DATABEHEER **********
*****************************************



*Controle intividuele variabelen
********************************/


data ess2;
set "/folders/myfolders/ess2e03_3.sas7bdat";
run;



proc freq data = ess2;
tables CNTRY DOMICIL AGEA HINCTNT EDULVLA HEALTH UEMP12M;
run;

proc freq data = ess2;
tables CNTRY DOMICIL AGEA HINCTNT EDULVLA HEALTH UEMP12M;
format CNTRY DOMICIL AGEA HINCTNT EDULVLA HEALTH UEMP12M;
run;



*HEALTH omkeren.
****************;


data ess2;
set ess2;
HEALTHRev = 6 - HEALTH;
label HEALTHRev = "Subjective general healt - Reversed";
run;



proc freq data = ess2;
tables HEALTHRev;
run;



*DOMICIL dummyficeren ("Country village" als referentiecategorie).
******************************************************************;


data ess2;
set ess2;

D1DOMICIL = (DOMICIL = 1);
if DOMICIL < 0 then D1DOMICIL = .;
D2DOMICIL = (DOMICIL = 2);
if DOMICIL < 0 then D2DOMICIL = .;
D3DOMICIL = (DOMICIL = 3);
if DOMICIL < 0 then D3DOMICIL = .;
D4DOMICIL = (DOMICIL = 5);
if DOMICIL < 0 then D4DOMICIL = .;

label D1DOMICIL = "Big city - dummy"
D2DOMICIL = "Suburbs - dummy"
D3DOMICIL = "Town or small city - dummy"
D4DOMICIL = "Farm or home in countryside - dummy";

run;



proc freq data = ess2;
tables D1DOMICIL D2DOMICIL D3DOMICIL D4DOMICIL;
run;

, *EDULVLA hercoderen.
********************;


proc format;
value EDULVLARecfmt
1 = "Laag geschoold"
2 = "Midden geschoold"
3 = "Hoog geschoold"
;
run;



data ess2;
set ess2;

select (EDULVLA);
when (1) EDULVLARec = 1;
when (2,3,4) EDULVLARec = 2;
when (5) EDULVLARec = 3;
otherwise EDULVLARec = .;
end;

label EDULVLARec = "Highest level of education - Recoded";
format EDULVLARec EDULVLARecfmt.;

run;



proc freq data = ess2;
tables EDULVLARec;
run;



*Landen numeriek maken.
***********************;


proc sort data = ess2;
by CNTRY;
run;

data ess2;
set ess2;
by CNTRY;
if first.CNTRY then CNTRYNUM + 1;
label CNTRYNUM = "Numerieke landvariabele";
run;


proc freq data = ess2;
tables CNTRY CNTRYNUM;
run;



*Landvariabele UEMP12M: intern aggregeren.
******************************************;


proc sort data = ess2;
by CNTRYNUM;
run;

proc freq data = ess2 noprint;
tables UEMP12M / out = frequnemp;
by CNTRYNUM;
run;

Written for

Institution
Study
Course

Document information

Uploaded on
November 26, 2019
Number of pages
10
Written in
2018/2019
Type
Exam (elaborations)
Contains
Answers

Subjects

$8.18
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF


Also available in package deal

Reviews from verified buyers

Showing all reviews
3 year ago

4.0

1 reviews

5
0
4
1
3
0
2
0
1
0
Trustworthy reviews on Stuvia

All reviews are made by real Stuvia users after verified purchases.

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
clairevanroey Universiteit Antwerpen
Follow You need to be logged in order to follow users or courses
Sold
119
Member since
9 year
Number of followers
96
Documents
32
Last sold
1 year ago

3.1

13 reviews

5
3
4
4
3
0
2
3
1
3

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions