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

Exam (elaborations)

Examenopdracht

1 review
 182 views  0 purchase
  • Course
  • Institution

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

Preview 2 out of 10  pages

  • November 26, 2019
  • 10
  • 2018/2019
  • Exam (elaborations)
  • Answers

1  review

review-writer-avatar

By: el_mohamed • 2 year ago

avatar-seller
/********** 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;

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.05. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

64438 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.05
  • (1)
  Add to cart