在 proc 逻辑模型方程中指示 "equalslopes" 时出现语法错误

Syntax error when indicating "equalslopes" in proc logistic model equation

我一直在尝试 运行 使用有序结果的过程逻辑逐步回归模型。因为我试图解释比例赔率的假设,所以我的几个变量的斜率不均匀。因此,在我的代码中,我同时指示了等斜率和不等斜率,但是我继续收到此语法错误。

ERROR 22-322: Syntax error, expecting one of the following: ;, ABSFCONV, AGGREGATE, ALPHA, BACKWARD, BEST, BINWIDTH, BUILDRULE, CL, 
              CLODDS, CLPARM, CODING, CONVERGE, CORRB, COVB, CT, CTABLE, DETAILS, DSCALE, EXPB, FAST, FCONV, FIRTH, GCONV, 
              HIERARCHY, INCLUDE, INFLUENCE, IPLOTS, ITPRINT, L, LACKFIT, LINK, MAXITER, MAXSTEP, NOCHECK, NODUMMYPRINT, NOFIT, 
              NOINT, NOLOGSCALE, OFFSET, OUTROC, PARMLABEL, PCORR, PEVENT, PL, PLCL, PLCONV, PLRL, PPROB, PSCALE, RIDGING, 
              RISKLIMITS, ROCEPS, RSQUARE, SCALE, SELECTION, SEQUENTIAL, SINGULAR, SLE, SLENTRY, SLS, SLSTAY, START, STB, STEPWISE, 
              STOP, STOPRES, TECHNIQUE, UNEQUALSLOPES, WALDCL, WALDRL, XCONV.  
ERROR 76-322: Syntax error, statement will be ignored.

我确信我输入的代码是正确的,即使我没有为 equalslopes 选项和 unequalslopes 选项声明任何特定变量,我仍然收到相同的消息。下面是我的代码。

proc logistic data=upper_limit;
class Profitrank dealer_state_id dlr_zip RUCA2 area_description/ param =  ref;
model profitrank =  num_booked num_approved num_apps bk_conversion_rt appr_rt num_new num_used Percentage_of_New Average_Vehicle_Age average_dti 
average_pti average_revolving_balance average_revolving_balance_rate average_public_records average_inquiries average_inquiry_6_months 
average_open_rev_trades average_term average_major_derog average_minor_derog average_open_install average_scorecard average_fico_score average_app_risk_score
average_LTV average_consumer_rate average_truist_rate Dealer_state_ID RUCA2/link=clogit selection=stepwise SLE=0.10 SLE=0.10 EQUALSLOPES=(appr_rt average_pti average_public_records
 average_open_rev_trades average_major_derog average_minor_derog average_open_install average_fico_score average_app_risk_score RUCA2) unequalslopes details maxiter=500;
run;``` 

Any help with this would be greatly appreciated!

您需要使用适用于您正在使用的 SAS 版本的选项。在 2015 年发布的 SAS 9.4m3 SAS/STAT 14.1 中添加了 EQUALSLOPES 选项。

请注意,SAS 是订阅许可证。这意味着您已经支付了使用最新版本的权利。让贵公司的人员安装最新版本的 SAS。您可能还需要使用较新版本的企业指南才能利用新功能。