BookmarkSubscribeRSS Feed

[LOGISTIC] 범주형(CLASS) 계수를 양수로 변경하기

Started ‎06-11-2020 by
Modified ‎06-11-2020 by
Views 111

* 출처 : 통계분석연구회 (http://cafe.daum.net/statsas/3Oum/44)

 

 

* 스코어카드 생성을 위하여 계수값을 양수로 변경하기 위하여 ref 방식을 사용하고, 개별 class변수에서 최소 계수값을 기준값으로 설정(ref=);

 

* 절편값이 음수인 경우에는 스코어 카드의 Scale 조정시에 조정. ;

 

proc logistic DATA=RERENEW.TMPH_BASE_20130624 plots(only)=(roc) outmodel=renew_MODEL ;
     CLASS  Lifestage(ref='G4') 
            STD_DISPREM_NEWG(ref='G1') 
            ILL_YN_GRP 
            CUST_YEAR_ngrp(ref='G0')
            CAR_KND_Ngrp (ref='G3')
            HISCO_CD_GRP(ref='G1') HMO_GRP(ref='G2')
            APLY_INSRFEE_GRP(ref='0~30만원이하') New_TOT_LOS_GRP(ref='G1')  /param=ref;
     MODEL  RENEWYN =  Lifestage STD_DISPREM_NEWG 
            ILL_YN_GRP CUST_YEAR_ngrp CAR_KND_Ngrp HISCO_CD_GRP HMO_GRP
            APLY_INSRFEE_GRP New_TOT_LOS_GRP / CTABLE;
     OUTPUT OUT=TRA_OUT P=COM_PHAT;
run;

Version history
Last update:
‎06-11-2020 10:33 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