SAS 를 막다운으로 돌려보자.
ods noproctitle;
ods graphics;
ods html file="sasoutput.html" (no_top_matter no_bottom_matter) style=journal;
/*여기서부터 sas 코드*/
libname hw1 "D:\gd\2016년 1학기\계량\과제1";
/*1번 문제: 년도별 취업률 표 만들기 및 그리기*/
proc means data = hw1.labor;
run;
proc freq data = hw1.labor;
table act1;
run;
data labor1;
set hw1.labor;
if act1 < 0 then delete;
if act1 = . then delete;
if act1 = 2 or act1 = 4 or act1 = 5 then kasa = 1;
else kasa = 0;
keep year kasa;
run;
proc means data = labor1 mean;
class year;
var kasa;
output out = kasa0;
run;
data kasa1 ;
set kasa0(where = (_STAT_="MEAN"));
if _TYPE_=0 then delete;
keep year kasa;
run;
proc sgplot data=kasa1;
scatter x = year y = kasa / datalabel = kasa;
series x = year y = kasa;
run;
proc sgplot data=kasa1;
vbar year / response = kasa datalabel = kasa;
run;
pid
|
region
|
employed
|
act1
|
act2
|
year
|
marketinc
|
dispinc
|
|
|
212271
|
212271
|
212271
|
186913
|
212271
|
212271
|
83629
|
83627
|
|
983422.43
|
6.5716231
|
1.4579947
|
3.5064763
|
3.8496968
|
2006.30
|
2387.57
|
2288.31
|
|
2542655.92
|
4.6733054
|
0.4982336
|
2.8659379
|
4.1975343
|
4.9636127
|
2298.45
|
2023.11
|
|
101.0000000
|
1.0000000
|
1.0000000
|
-1.0000000
|
-1.0000000
|
1998.00
|
-1.0000000
|
-1.0000000
|
|
11015702.00
|
19.0000000
|
2.0000000
|
9.0000000
|
20.0000000
|
2014.00
|
170016.00
|
117000.00
|
|
1
|
0.00
|
1
|
0.00
|
96262
|
51.50
|
96263
|
51.50
|
6129
|
3.28
|
102392
|
54.78
|
2054
|
1.10
|
104446
|
55.88
|
790
|
0.42
|
105236
|
56.30
|
30362
|
16.24
|
135598
|
72.55
|
3745
|
2.00
|
139343
|
74.55
|
18403
|
9.85
|
157746
|
84.40
|
28039
|
15.00
|
185785
|
99.40
|
1128
|
0.60
|
186913
|
100.00
|
2000
|
11205
|
0.2041946
|
2001
|
11051
|
0.2060447
|
2002
|
10966
|
0.1897684
|
2003
|
11541
|
0.1907114
|
2004
|
11661
|
0.2003259
|
2005
|
11580
|
0.1976684
|
2006
|
11756
|
0.2096802
|
2007
|
11855
|
0.2071700
|
2008
|
11734
|
0.2044486
|
2009
|
14489
|
0.2013251
|
2010
|
14118
|
0.1957784
|
2011
|
13899
|
0.1959134
|
2012
|
14000
|
0.1940714
|
2013
|
13888
|
0.1880760
|
2014
|
13169
|
0.2092794
|