BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
DmytroYermak
Lapis Lazuli | Level 10

Hi all,

Proc Freq is being used in assessing variable importance. For this purpose the results of the chi-square test for ordering the predictor variables by importance is being used as the variable worth:
Worth = -2log(p).

Could you please explain how to manage the cases where p is not a number but rather an inequality like here: 

DmytroYermak_0-1678257736022.png

If i'm wrong with the interpretation please avise how the variable worth should be calculated.

Thank you!

 

1 ACCEPTED SOLUTION

Accepted Solutions
sbxkoenk
SAS Super FREQ

Hello,

 

The p-value being displayed as <0.001 ... ... that's only a format being used (pvalue6.4).

Use ODS output to send that output object to a table. 
In the table you can then see the real internal value.

 

Formats for p-values and odds ratios in SAS
By Rick Wicklin on The DO Loop August 15, 2016
https://blogs.sas.com/content/iml/2016/08/15/formats-p-values-odds-ratios-sas.html

 

Cheers,

Koen

View solution in original post

5 REPLIES 5
sbxkoenk
SAS Super FREQ

Hello,

 

The p-value being displayed as <0.001 ... ... that's only a format being used (pvalue6.4).

Use ODS output to send that output object to a table. 
In the table you can then see the real internal value.

 

Formats for p-values and odds ratios in SAS
By Rick Wicklin on The DO Loop August 15, 2016
https://blogs.sas.com/content/iml/2016/08/15/formats-p-values-odds-ratios-sas.html

 

Cheers,

Koen

DmytroYermak
Lapis Lazuli | Level 10
Thank you, Koen!
DmytroYermak
Lapis Lazuli | Level 10
P.S. Just one comment after some manual calculations: Log in Worth = -2log(p) is the logarithm on base 10 ('LOG10()').
sbxkoenk
SAS Super FREQ

Hey @DmytroYermak ,

 


@DmytroYermak wrote:
P.S. Just one comment after some manual calculations: Log in Worth = -2log(p) is the logarithm on base 10 ('LOG10()').

Is that a question or a statement??

  • LOG-function in SAS has base number e.
  • LOG10-function in SAS has base number 10.
  • LOG2 function in SAS has base number 2.

Or do you simply mean that for the worth to be correct LOG10 is needed?

Cheers,

Koen

StatDave
SAS Super FREQ

I think this is usually computed as -log10(p-value) as is used in the Manhattan plot in PROC MULTTEST to make the most significant p-values easier to see in a large set of p-values. See the example titled "Adaptive Adjustments and ODS Graphics" and the PLOTS= option in the MULTTEST documentation.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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
  • 5 replies
  • 787 views
  • 0 likes
  • 3 in conversation