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

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 1341 views
  • 1 like
  • 2 in conversation