An Analysis on Danish Micro Data - School of Economics and ...
An Analysis on Danish Micro Data - School of Economics and ...
An Analysis on Danish Micro Data - School of Economics and ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
data medold;<br />
set b.lmdb_pct10_2003;<br />
udtrnr=pnr;<br />
proc sort data=medold;<br />
by udtrnr;<br />
DROP pnr;<br />
data medold1;<br />
merge medold (in=a) nyti (in=b);<br />
by udtrnr;<br />
if a;<br />
if b;<br />
/*Merging the old <strong>and</strong> new data by udtrnr*/<br />
data allmedicin;<br />
set medold1 collect2;<br />
proc sort data=allmedicin;<br />
by udtrnr;<br />
/*The pers<strong>on</strong>s in the collected medicine-dataset get a year<br />
attached based <strong>on</strong> date <strong>of</strong> purchase in order to merge the data with<br />
the register data*/<br />
data allmed;<br />
set allmedicin;<br />
dato=juldate7(eksd);<br />
if 1995000