创建决策树模型

时间:2021-04-02 21:41:24

标签: sas

我正在尝试创建决策树模型。这是我得到的错误:

 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         WORK.IMPORT = New WORK.IMPORT (student, blanace, income);
            ___________
            180
 
 ERROR 180-322: Statement is not valid or it is used out of proper order.
 
 74         String name = map.get(WORK.IMPORT);
            ______
            180
 
 ERROR 180-322: Statement is not valid or it is used out of proper order.
 
 75         
 76         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 88    

这是我尝试过的示例代码。我真的很亲近吗?

WORK.IMPORT = New WORK.IMPORT (student, blanace, income);
String name = map.get(WORK.IMPORT);     

新代码:

proc logistic data = cleaned_anes descending;
  class default / param=glm;
  model default = student balance income;
run; 

错误:我有无效的变量。好像离我越来越近了。

0 个答案:

没有答案