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

Dear professors, my sas software warning when computing the shift of a 7-level ordinal outcome using Hodges-Lehmann
 Estimation, what should I do to deal with this problem?

WARNING: Computing exact confidence limits for this problem may require much time and memory. Press the system interrupt
key to terminate exact computations.

Here's my code.

 

proc npar1way hl alpha=.05 data=work.stroke;
      class group;
      var D90_mRS_score;
      exact hl;
      ods select WilcoxonScores HodgesLehmann;
   run;

 

1 ACCEPTED SOLUTION

Accepted Solutions
Rick_SAS
SAS Super FREQ

It appears that you have uploaded a "sav" file, which is a SPSS file. You can use PROC IMPORT to convert that file to SAS.

PROC IMPORT
  DATAFILE='C:\Downloads\test.sav'
  OUT=work.stroke
  DBMS=SAV replace;
RUN;

It looks like the data has 300 observations. The split between Group=0 and Group=1 is N0=169 and N1=131.  For samples that large, you are not going to be able to run an exact test for the LH confidence intervals. However, the asymptotic standard error and the traditional HL confidence limits should provide good estimates for your data.

View solution in original post

7 REPLIES 7
Rick_SAS
SAS Super FREQ

The warning alerts you to the fact that you have requested a computation that is very complex and potentially time-consuming. If your program runs in a reasonable amount of time, you can ignore the warning.  Here is an example for which the WARNING is printed, but the computation finishes in a fraction of a second:

proc npar1way hl alpha=.05 data=sashelp.class;
      class sex;
      var height;
      exact hl;
      ods select WilcoxonScores HodgesLehmann;
   run;

The details of the EXACT statement are in the doc. For this problem, you are requesting exact confidence limits. 

 

If the HL computation is taking too long, you'll have to remove the EXACT statement and use the asymptotic estimates. For most exact computations, you can use the MC option to produce a Monte-Carlo estimate of the exact statistic, but the HL exact statistic does not support the MC option.

Diels_O
Obsidian | Level 7
Thanks, how can I perform MC for a confidence intervel, can you give an example?
Rick_SAS
SAS Super FREQ

Can you provide sample data?

Diels_O
Obsidian | Level 7

Here I upload my sample data, and I want to get the shift of the ordinal variables(mrs90d and NIHSS_24H, NIHSS_7D), thanks very much!

Rick_SAS
SAS Super FREQ

It appears that you have uploaded a "sav" file, which is a SPSS file. You can use PROC IMPORT to convert that file to SAS.

PROC IMPORT
  DATAFILE='C:\Downloads\test.sav'
  OUT=work.stroke
  DBMS=SAV replace;
RUN;

It looks like the data has 300 observations. The split between Group=0 and Group=1 is N0=169 and N1=131.  For samples that large, you are not going to be able to run an exact test for the LH confidence intervals. However, the asymptotic standard error and the traditional HL confidence limits should provide good estimates for your data.

Diels_O
Obsidian | Level 7

Thanks, wish you a nice day!

Diels_O
Obsidian | Level 7

Dear Rick, I have posted my sample data, and can you show me how to calculate the difference of ordinal outcomes and confidence intervel?

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 7 replies
  • 1999 views
  • 1 like
  • 2 in conversation