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

Hi

 

I want to know if SAS can do a goodness of test for other less famous distributions? Such as Frechet, exponentiated frechet, Kumaraswamy..etc.

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
Rick_SAS
SAS Super FREQ

Yes. Probably the SEVERITY procedure in SAS/ETS software provides functionality that is closest to what you want. It provides log-likeihood GOF measures (-2*LL, AIC, BIC,...) and ECDF measures (KS, AD, CvM,...).

You can use the FCMP procedure to define the PDF (or LOGPDF) of your distribution and then call it from PROC SEVERITY. There are several examples ni the doc that you can follow.

 

View solution in original post

3 REPLIES 3
Rick_SAS
SAS Super FREQ

You posted the question the SAS/IML Community, so I assume you want to program these tests yourself? If so, the answer is yes. You can use the SAS/IML language to implement algorithms and statistical tests that are published in papers, textbooks, websites, etc.

 

It can be a challenge to know what GOF test to use. Some distributions have their own tests. Others use general criteria such as AIC or BIC.

 

In summary, you need to find the mathematical formula or algorithm that gives the GOF test, then implement it yourself. There are no built-in GOF tests in IML for obscure distributions.

Salah
Quartz | Level 8

Thank you so much for the advices.

Are there any built-in GOF tests in SAS in general?

 

Thank you

Rick_SAS
SAS Super FREQ

Yes. Probably the SEVERITY procedure in SAS/ETS software provides functionality that is closest to what you want. It provides log-likeihood GOF measures (-2*LL, AIC, BIC,...) and ECDF measures (KS, AD, CvM,...).

You can use the FCMP procedure to define the PDF (or LOGPDF) of your distribution and then call it from PROC SEVERITY. There are several examples ni the doc that you can follow.

 

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!

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

From The DO Loop
Want more? Visit our blog for more articles like these.
Discussion stats
  • 3 replies
  • 559 views
  • 0 likes
  • 2 in conversation