BookmarkSubscribeRSS Feed

[SAS 활용 FAQ] options missing=0 으로 처리된 0 값과 실제 자료에서의 계산된 0 값이 다르게 인식이 되네요.

Started ‎05-24-2021 by
Modified ‎05-24-2021 by
Views 1,110

[상세내용]

c=a-b 를 계산할 때 options missing=0 으로 처리된 0 의 값은 제대로 계산이 안됩니다.

어떻게 해결해야 하는지요?

 

 

[답변]

option missing 은 단순히 표현형식일 뿐이고 실제 계산되는 형태는 아닙니다.

결측값때문에 “-“ 계산이 안되어서 그렇다면 아래의 예를 응용해 보시기 바랍니다.

 

 

c=sum(a,0)-sum(b,0);

Version history
Last update:
‎05-24-2021 10:13 PM
Updated by:
Contributors

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

Article Labels
Article Tags