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-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!

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