BookmarkSubscribeRSS Feed
klau4
Calcite | Level 5

Hi SAS Community,

 

I'm trying to leverage the SAS Viya catTrans action's ability to derive WOE and score out the input dataset. However, I do not want it to help group/bin my categorical variables as I have already done so with my input dataset.

I've tried playing around with the various parameters but I haven't been able to force catTrans to stop grouping. I've tried the following parameters in my most recent attempt:

 

proc cas;
session mysession;

table.loadTable result=r /
caslib=%tslit(&caslib.)
path=%tslit(&input_ds_fullname.)
casOut={name=%tslit(&output_prefix.)||"_cat", replace=true};
run;

dataPreprocess.catTrans /
table={name=%tslit(&output_prefix.)||"_cat"}
casOut={name=%tslit(&output_prefix.)||"_bin"} copyAllVars=TRUE
evaluationStats=TRUE

arguments={
nBinsArray=100000
}

targets={{name="flag"}}
events={"1"}
method="GROUPRARE"
inputs={&list_attr.}
casOutBinDetails={name=%tslit(&output_prefix.)||"_bindetails"}
;
run;

quit;

 

Any help would be greatly appreciated!