
I am running different fit distribution tests on data, using commands like:

fitdist(BA$price, "norm", method="mge",gof="AD")
fitdist(BA$price, "norm", method="mge",gof="CvM")

Being not very well-versed with R, I have been saving the results into a file, and then using manual processes to rank the best fit based on, e.g. the Kolmogorov-Smirnov statistic.

Is there a way, using perhaps an existing function in R, to 'rank' the results based on a particular statistic, e.g. the K-S statistic.

thanks,
Bobby


 		 	   		  
	[[alternative HTML version deleted]]

