Re: [R] Fitting particle size analysis data

2013-12-22 Thread PIKAL Petr
ned solution. Petr From: Zorig Davaanyam [mailto:dzo...@gmail.com] Sent: Saturday, December 21, 2013 12:36 AM To: PIKAL Petr Subject: Re: [R] Fitting particle size analysis data Hi, Thanks for the reply. Do you know how to find the fitted parameters of lognormal distribution? Regards, Zorig On Fri,

Re: [R] Fitting particle size analysis data

2013-12-20 Thread PIKAL Petr
Hi I made a simple spredsheet for PSD using Rosin Rammler equation and I am lazy to transform it to R. However for single purpose you can use nls. Reverse your cumulative values PSD$cum<-cumsum(PSD$ret) plot(PSD$size, PSD$cum) fit<-nls(cum~ exp(-((size/r)^gama))*100, data=PSD, start=c(r=80, g