Hi there,
I was wondering if there is a way to fit a distribution directly from a frequency table without having the raw data. I've tried using proc univaraite but you can't use the weight
option with the histrogram option. I'm a bit stuck.
Thank you
I think you would use FREQ statement.
I think you would use FREQ statement.
Thanks I think that is what I was looking for!
Now just a smaller problem I hope you would be able to help me with (it looks like you know your stuff ):
Lets say I already have binned my data according to a certain format (unequal bins). Is there a way to suppress proc univariate from creating automatic bins for the data and fit the distribution according to my binning format?
Not sure but perhaps one of the MIDPOINT related options is what you need. Perhaps show an example of your data and univariate code.
The data is formatted and binned according to this:
LOW <- 0 = 'X0'
0.00000 <- 0.00001 = 'X1'
0.00001 <- 0.00002 = 'X2'
0.00002 <- 0.00005 = 'X3'
0.00005 <- 0.00007 = 'X4'
0.00007 <- 0.00010 = 'X5'
0.00010 <- 0.00012 = 'X6'
0.00012 <- 0.00017 = 'X7'
0.00017 <- 0.00025 = 'X8'
0.00025 <- 0.00035 = 'X9'
0.00035 <- 0.00047 = 'X10'
0.00047 <- 0.00062 = 'X11'
0.00062 <- 0.00080 = 'X12'
.
.
.
0.50000 <- 0.65000 = 'X97'
0.65000 <- 0.80000 = 'X98'
0.80000 <- 1.00000 = 'X99'
1.00000 <- HIGH = 'X101'
This formatting is applied and to spread out the data a little bit, otherwise everyhing is thrown into the first two or three bins. So I have my bins and I have a frequency in each and now I want to fit a distribution to the data.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.