100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 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
Module









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Study
Module

Document information

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

Subjects

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;
£5.84
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached


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
8 year
Number of followers
96
Documents
32
Last sold
10 months ago

3.1

13 reviews

5
3
4
4
3
0
2
3
1
3

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

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

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight 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 smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions