I am looking for SAS syntax or SAS macro with Code that will perform Goodness of Fits on discrete categorical data.
Specifically one that shows how to do the math described by N. Cressie, T.R.C. Read, in their paper entitled
"Multinomial goodness-of-fit tests," J. Roy. Statist. Soc. B 46 (1984) 440–464.
I do have code now for 4 of the 5 test statistics I need.
proc freq gives the Pearson's Chi Square,
Proc Univarite produces the Komogorov Smirnov test statistic,
Proc Probit produces the Log Likelihood Ratio as does Proc GenMod,
Proc Multtest calculates the Freeman-Tukey test statistic,
but I have not been able to find the Power divergence test show in the image attached here. I found some R code so maybe I can run it inside SAS enterprise guide? But I do NOT have a SAS/IML or SAS Enterprise Miner license so I can not run the R code inside a node that way. Please advise.
... View more