Hello
not sure if your question is about scoring of the new cases or definition of input variable types. Attached is code that might help you (data are toy example):
/*see https://support.sas.com/documentation/onlinedoc/stat/141/hpgenselect.pdf*/
/*of https://support.sas.com/documentation/onlinedoc/stat/143/stathpug.pdf*/
proc hpgenselect data=sashelp.class ;
class sex;
model age= sex weight sex*weight ;*/link=log distribution=poisson ;
selection
METHOD=STEPWISE
DETAILS=all
;
output out=myOut xbeta predicted=Pred;
code File='c:\temp\ScoringParameters.sas';
run;
data to_be_predicted;
sex='F'; weight=88; output;
sex='M'; weight=99; output;
run;
data prediction;
set to_be_predicted;
%include 'c:\temp\ScoringParameters.sas';
run;
proc print data=prediction;run;
data all_in_hpgenselect;
set sashelp.class to_be_predicted;
run;
proc print data=all_in_hpgenselect;run;
proc hpgenselect data=all_in_hpgenselect ;
class sex;
model age= sex weight sex*weight ;*/link=log distribution=poisson ;
selection
METHOD=STEPWISE
DETAILS=all
;
ID name sex age weight;
output out=myOut_with_prediction xbeta predicted=Pred;
code File='c:\temp\ScoringParameters.sas';
run;
proc print data=myOut_with_prediction;run;
... View more