[R] Replies to Kolmogorov-Smirnoff test

2007-11-08 Thread Oarabile Molaodi
--- E-Mail: (Ted Harding) <[EMAIL PROTECTED]> Fax-to-email: +44 (0)870 094 0861 Date: 06-Nov-07 Time: 16:23:34 -- XFMail -- > >Oarabile Molaodi writes: > > I am trying to determine w

[R] Kolmogorov-Smirnoff test

2007-11-06 Thread Oarabile Molaodi
I am trying to determine whether two samples are identical or not. I'm aware that somebody can use the Kolmogorov-Smirnoff test to compare empirical distributions, but since my samples have ties I'm not sure if I'm getting the right p-values for the comparison. Can the Kolmogorov-Smirnoff test

[R] simulation

2007-10-16 Thread Oarabile Molaodi
I am trying to write a function that will simulate observed counts X and Y as below, I want the function to be able give many replicates, can somebody advise? thanks Oarabile #alpha,n sdx and sdy are constant, and N is a vector of length n. unstructured<-function(n,N,alpha,sdx,sdy){ Vx<-rnorm(n