BookmarkSubscribeRSS Feed
Quantopic
Obsidian | Level 7

Hello SAS users,

 

I used the SEVERITY procedure to fit and test data dstribution.

 

Among all the stats and plots available, one can have the critical values for the Anderson-Darling test.

 

Now, I wonder about a way to compute the relative p-value for such statistics/test.

 

Can you suggest a way to compute that?

 

The probability distribution is the Geenralyzed Pareto distribution.

 

Thanks all in advance for the help!!

1 REPLY 1
Rick_SAS
SAS Super FREQ

Please supply sample data and code that show what you are trying to accomplish.

 

The title of this topic includes the phrase "using simulation", but you do not mention simulation in your question. The typical simulation approach to estimate a p-value is 

1. Compute a statistic for the observed data

2. Simulate a sample from a known population that is appropriate for the observed data. (aka, simulate from the "null distribution.")

3. Compute the same statistic for the simulated data.

4. Repeat Steps 2-3 many times.

5. Compare the observed statistic to the distribution of the statistics on the simulated samples. The Monte Carlo p-value is the proportion of simulated statistics that are more extreme than the observed statistic.

 

The same technique is used to estimate a p-value for a bootstrap distribution. For a simulation example, you can see the article on using Monte Carlo simulation to estimate the p-value for the chi-square test.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 1001 views
  • 1 like
  • 2 in conversation