SAS proc评分程序

时间:2018-04-10 21:52:19

标签: sas

SAS直接给出预测值名称MODEL1。有没有办法在proc评分程序中自我定义名称?

proc score data=DATA score=regout out=score_temp type=parms;
var &_varinclude.;
run;

1 个答案:

答案 0 :(得分:1)

在模型语句中添加语句标签。

proc reg outest=stat data=sashelp.class plots=(none);
   agePredicted:model age = height weight;
   run;
proc print;
   run;
proc score score=stat predict data=sashelp.class type=parms;
   var height weight;
   run;
proc print;
   run;