BookmarkSubscribeRSS Feed
Yazdan
Fluorite | Level 6

Hello all,

 

I wrote the following code to fit a NHPP on my data. The problem is while it gives me the parameters and their relative errors, it does not provide a fitting error, like Anderson Darling. I want to see how far my fitted model is from the general data (e.g. mean square error). I want to know which model, power-law or log-linear, provides a better fit. I need your help, ASAP. Thank you!

 

code:
proc reliability data=app1;
           title 'Apple-Dataset';  
           unitid id;  
         distribution nhpp(pow);  
         model   time*day(-1);  
          mcfplot time*day(-1) / fit=model noconf;  
         run;
 

Regards,

Yazdan


nhpp.png
1 REPLY 1
SteveDenham
Jade | Level 19

This is kind of a kludgy way around it, and I am not sure that it will work.  If you use the parameter estimates to calculate predicted values at each time point, you could get the residuals, and from there calculate PRESS values as a way of comparing.  Another would be to look at Kolmogorov-Smirnov tests comparing the observed and predicted values.

 

Steve Denham

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 1 reply
  • 1377 views
  • 1 like
  • 2 in conversation