본문 바로가기

SAS/Scenario

Scenarie 10

실행 코드

data  work.mycars;
set sashelp.cars;
AvgMPG=mean(mpg_city, mpg_highway);
run;


proc print data=work.mycars;
run;

title "Cars with Average MPG Over 40";
proc print data=work.mycars;
var make model type avgmpg;
where AvgMPG>40;
run;


title "Average MPG by Car Type";
proc means data=work.mycars mean min max maxdec=1;   

# maxde=n : 출력되는 통계량 값의 소수점 자리수를 지정한다. (0부터 8자리까지 가능)

 

var avgmpg;
class type;
run;
title;


 

정답

Q. Open the ehs02 program from the EHS folder and correct the errors in the program below. - 에러코드 수정 문제

'SAS > Scenario' 카테고리의 다른 글

Scenario 2  (0) 2022.12.25
Scenario 1  (0) 2022.12.25
Scenario 9  (1) 2022.11.06
Scenario 8  (0) 2022.11.06
scenario 7  (0) 2022.11.06