I am performing robust regression using SAS. I am getting the following warning:
WARNING: The scale is close to 0. A possible exact fit is detected.
WARNING: Output 'GoodFit' was not created. Make sure that the output object name, label, or path is spelled correctly. Also, verify that the appropriate procedure options are used to produce the requested output object. For example, verify that the NOPRINT option is not used."**
Why I am getting this warning? How can I rectify it so that Goodfit can be created? As the outttest=dataset
does not have any observations in it, I am getting an error in my code as the output of outtest in used subsequently as an input further.
Code snippet is as follows:-
proc robustreg data=test method=m (wf=huber(c=1.3)) outest = fac1;
class bucket bucket0;
model R_res_new=xyz_ldg*bucket bucket0 abcdev_sh*bucket0 abcdev_lg*bucket0 / noint;
output out=fac1t residual=res;
ods output GoodFit=fit1;
run;
Test dataset is:-
bucket0 R_res_new abcdev_sh abcdev_lg xyz_ldg bucket
pp 0.118023674 0 0.427853531 0.622702006 aa
pp 0.2443029 -0.52011222 0 0.84582555 bb
pp 0.242459596 -0.198019513 0 3.796344334 bb
pp 0.150550397 0 0.05454537 0.57086536 bb
pp 0.093373827 0 0.855772297 0.68810985 bb
pp 0.401303208 -0.620039465 0 1.319799593 bb