BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
SB2017
Calcite | Level 5

Hello,

I am trying to fi a weibull distribution to a list of frequency data, and I am using the following code in SAS 9.4 

 

proc univariate data=data1;

   var group;

   freq count;

   histogram / weibull (Theta=est) midpoints=1 to 28 by 1;

run;

 

I got my parameter estimates however SAS did not give me any Goodness of fit statistics. Is there a specific coding that allows me to get one?

Thank you 

1 ACCEPTED SOLUTION

Accepted Solutions
Rick_SAS
SAS Super FREQ

Yes, the documentation for the GOF tests in PROC UNIVARIATE mentions that the ECDF tests for GOF are only available when c > 2.

I'm not near a copy of Stephens and D'Agostino right now, so I can't look up why that constraint is required. 

View solution in original post

3 REPLIES 3
Rick_SAS
SAS Super FREQ

You code looks correct and should give GOF tables. Run the following and see if you see the "Goodness-of-Fit Tests for Weibull Distribution" table

 

ods trace on;
proc univariate data=sashelp.cars; var mpg_city; freq cylinders; histogram mpg_city / weibull (Theta=est) midpoints=10 to 60 by 2.5; run;
ods trace off;
SB2017
Calcite | Level 5

The proposed code did not gice GOF tables unless c>2. I had to put in a value of theta to getW-sq and A-sq GOF statistics.

 

Is there another procedure available to fit a weibull distribution using point frequency data?

Thank you

Rick_SAS
SAS Super FREQ

Yes, the documentation for the GOF tests in PROC UNIVARIATE mentions that the ECDF tests for GOF are only available when c > 2.

I'm not near a copy of Stephens and D'Agostino right now, so I can't look up why that constraint is required. 

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 3 replies
  • 1627 views
  • 1 like
  • 2 in conversation