SAS Base, A00-211 Crambible 

SAS 베이스 자격증


QUESTION NO: 71


Given the following code:


proc print data=SASHELP.CLASS(firstobs=5 obs=15); 

where Sex='M';
run;


How many observations will be displayed?


A. 11
B. 15
C. 10 or fewer 

D. 11 or fewer


proc 에서 


firstobs=숫자, 이 숫자번째에서 osbervation을 시작하란 뜻이고요. 

obs = 숫자,, 이 숫자번째까지 observation을 가져오란 뜻입니다. 


(firstobs=5 obs=15); 라고 되어있으니까 5번째부터 15번쨰까지 가져와야하는데요. 

그렇다면 15-5+1 = 11개일것 같지만 더 적은 이유는, where에서 조건이 걸려있기 때문입니다. 즉 성별이 여자일땐 불러오지 않으니까 더 적을 수 있겠죠. 



Answer: D 


반응형

+ Recent posts