BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
greesamu
Obsidian | Level 7

In running a nested logit with proc MDC, the seemingly valid statements for "Utility" and "Nest" are red. The model runs, but the Hessian Matrix is Singular and all estimates are 1E-6. Code below:

 

proc mdc data=fullcanceronly;

      class RUC sex_new agecat_new_cat race_new_cat anydual_cat state_q zpmed_cat zpcol_cat year_of_diagnosis

                   stage cancertype prior_hist;

      model actual = RUC sex_new agecat_new_cat race_new_cat anydual_cat state_q zpmed_cat zpcol_cat year_of_diagnosis

                   stage cancertype prior_hist /

            type=nlogit

            choice=(FFS_MC_CHANGE);

   id unique_ID;

   utility u(1, ) = RUC sex_new agecat_new_cat race_new_cat anydual_cat state_q zpmed_cat zpcol_cat year_of_diagnosis

                   stage cancertype prior_hist;

   nest level(1) = (1 2 @ 1, 3 4 @ 2),

        level(2) = (1 2 @ 1);

run;

 

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

If you are using the DISPLAY MANAGER, the last time I looked SAS supplies 4 different schemes for the enhanced editor to use to set things like font, font weight, font size, font color. So "red" meaning depends on which theme is set. If you have modified a scheme  or if you have a custom theme (I know I do) then could be quite a bit different.

 

Also note that someone can specify user defined keywords to display different for what ever reason suits their fancy. So "color" alone is not that critical. Logs are typically much more revealing when it comes to code behavior than the highlighting in the editor.

 

SAS over time has gone through periods where they added so many features to the code that whoever was responsible for making the enhanced editor displays couldn't keep up so you get things that appear to be "undefined keywords".

 

View solution in original post

3 REPLIES 3
SASKiwi
PROC Star

In Enterprise Guide 8.4 there is no red:

SASKiwi_0-1723432894814.png

What developer interface and version are you using? Red typically only identifies incorrect syntax. If your program runs without error then your syntax is most likely OK. Unexpected statistics could result from inappropriate modelling and / or underlying data issues. These are best progressed via Tech Support. 

ballardw
Super User

If you are using the DISPLAY MANAGER, the last time I looked SAS supplies 4 different schemes for the enhanced editor to use to set things like font, font weight, font size, font color. So "red" meaning depends on which theme is set. If you have modified a scheme  or if you have a custom theme (I know I do) then could be quite a bit different.

 

Also note that someone can specify user defined keywords to display different for what ever reason suits their fancy. So "color" alone is not that critical. Logs are typically much more revealing when it comes to code behavior than the highlighting in the editor.

 

SAS over time has gone through periods where they added so many features to the code that whoever was responsible for making the enhanced editor displays couldn't keep up so you get things that appear to be "undefined keywords".

 

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 778 views
  • 0 likes
  • 4 in conversation