Re: [R] Fitting and Plotting the fitted distributions

2012-07-03 Thread Rui Barradas
Hello, This is here for some days now, and I've decided to give it a try. I've rewritten your fitfunction(), making it simpler. And include the gamma distribution in the list. require(MASS) fitfunction <- function(Type, x) list(Type=Type, Fit=fitdistr(x, Type)) fun <- function(x, data){

[R] Fitting and Plotting the fitted distributions

2012-07-01 Thread Alaios
Dear all, I have wrote some sample code that would allow me easier fit fast many distributions and check which of the fits performs better. My sample code (that you can of course execute it looks like that) distrList<-list(   "exponential",  "geometric", "log-normal",  "normal", "Poisson") f