Re: [R] Regarding KS Test for Goodness-of-Fit

2009-09-20 Thread Schalk Heunis
Manuj Your approach in (2) would work, looking at the source (just type ks.test) your function will be called with a sorted vector of data values, i.e. HED(sort(x), ...) where x is a a numeric vector of data values and ... is the parameters as passed to ks.test This means your function needs to be

[R] Regarding KS Test for Goodness-of-Fit

2009-09-19 Thread Manuj Sharma
I have fitted Hyperexponential distribution (HED) and Hypoexponential distribution (HoED) to two different data sets (of size 1000 numeric values each) using a software package called EMpht. I want to use R to perform goodness-of-fit test for the fitted distribution with respect to the empirical