SAS Base, A00-211 Crambible 

SAS 베이스 자격증


QUESTION NO: 92


The following code was modified to generate the results further below: 


proc format;
value agegrp
low-12 ='Pre-Teen'

13-high = 'Teen';
run;


proc means data=SASHELP.CLASS;
var Height;
class Sex Age;
format Age agegrp.;
run;


The following results were generated to display only specific statistics and limit the decimals with the modification: Which statement below was modified or added to generate the results above:



A. var Height / nobs min max mean max dec=1;

B. proc means data=SASHELP.CLASSmaxdec=1 ;
C. proc means data=SASHELP.CLASS min max mean maxdec=1; 

D. outputnobs min max mean maxdec=1;



proc format 을 사용해서 agegrp라는 포맷을 정의하고 있습니다. 

proc means 명령어를 SASHELP라는 라이브러리에 있는 CLASS라는 데이터에 적용하려고 하는데요. 이때 대상 변수는 Height이고요. 성별과 나이로 지정하고 Age는 agegrp.라는 포맷을 사용하려고 합니다. 


결과물을 보면 원하는 통계량만 지정하고요. 해당 통계값은 소숫점이 하나만 보이려고 합니다. 


Answer: C 


반응형

+ Recent posts