search for: storeon

Displaying 1 result from an estimated 1 matches for "storeon".

Did you mean: storeop
2012 Jul 02
1
Fitting and Plotting the fitted distributions
...s like that) distrList<-list(   "exponential",  "geometric", "log-normal",  "normal", "Poisson") fitfunction<-function(Type,x){     return (list(Type,(fitdistr(x,Type)))) } require(MASS) On<-round(abs(rnorm(10000,sd=100))+5,digits=0) storeOn<-lapply(distrList,fitdistr,x=On) plot(ecdf(On)) str(storeOn) what I am looking now is to plot with the initial dataset plot(ecdf(On)) all the fitted distributions over the same window. I am not sure though, if there is some straightforward way (i.e same random distribution generator) for the f...