Zhijiang Wang
2009-Nov-06 07:53 UTC
[R] How to test user-defined distribution using ks.test in R?
Dear All, I defined a distribution and I want to test it by k-s test? How to input parameters for ks.test(.....)? E.g., F(x,m) is user-defined function x is observation value, m is parameter of F y is observation vector value in experiment> ks.test(y,"F",m=0.2)error.... why? ' -- Best wishes, Zhijiang Wang -------------------------------------------- PHD Student Room 212, Science buliding, The International WIC Institute, College of Computer Science and Technology, Beijing University of Technology, Beijing, China.
David Winsemius
2009-Nov-06 13:13 UTC
[R] How to test user-defined distribution using ks.test in R?
On Nov 6, 2009, at 1:53 AM, Zhijiang Wang wrote:> Dear All, > > I defined a distribution and I want to test it by k-s test? > How to input parameters for ks.test(.....)? > E.g., > F(x,m) is user-defined function > x is observation value, m is parameter of F > > y is observation vector value in experiment > >> ks.test(y,"F",m=0.2) > error.... > > > why? >Without the error message? or the function definition? or str(y)? I would ask "why" you think intelligent commentary should be possible. -- David Winsemius, MD Heritage Laboratories West Hartford, CT
Uwe Ligges
2009-Nov-06 17:43 UTC
[R] How to test user-defined distribution using ks.test in R?
Zhijiang Wang wrote:> Dear All, > > I defined a distribution and I want to test it by k-s test? > How to input parameters for ks.test(.....)? > E.g., > F(x,m) is user-defined function > x is observation value, m is parameter of F > > y is observation vector value in experiment > >> ks.test(y,"F",m=0.2) > error....Well, R did not say "error", did it? Where is the definition of F? What is y? uwe Ligges> > why? > > > > > '
Reasonably Related Threads
- Problem with "Cannot compute correct p-values with ties"
- What can I use instead of ks.test for the binomial distribution ?
- KS test and theoretical distribution
- ks.test one-sample - where can I get a list of the strings specifying the distribution?
- ks.test for conditional distribution Y|x