Re: [R] Kolmogorov-Smirnov Test

2013-08-02 Thread Roslina Zakaria
Hi Peter,   Thank you so much for your explaination.  I draw histogram before that, so maybe that warning messages are meant for that. From: peter dalgaard Cc: "r-help@r-project.org" Sent: Friday, August 2, 2013 3:11 PM Subject: Re: [R] Kolmogor

Re: [R] Kolmogorov-Smirnov Test

2013-08-02 Thread peter dalgaard
On Aug 2, 2013, at 03:24 , Roslina Zakaria wrote: > Dear r-users, > > I am using KS test to test the goodness of fit for my data and the got the > following output. However, I don't understand about the "warning messages". > What does it mean by "horizontals" is not a graphical parameter" >

[R] Kolmogorov-Smirnov Test

2013-08-01 Thread Roslina Zakaria
Dear r-users,   I am using KS test to test the goodness of fit for my data and the got the following output.  However, I don't understand about the "warning messages".  What does it mean by "horizontals" is not a graphical parameter"   Thank you so much for any help given and it is very much appr

Re: [R] Kolmogorov-Smirnov test and the plot of max distance between two ecdf curves

2012-10-05 Thread Brian S Cade
] Kolmogorov-Smirnov test and the plot of max distance between two ecdf curves Sent by: r-help-boun...@r-project.org Rui, Your response nearly answered a similar question of mine except that I also have ecdfs of different lengths. Do you know how I can adjust x <- seq(min(loga, logb), max(l

Re: [R] Kolmogorov-Smirnov test and the plot of max distance between two ecdf curves

2012-10-05 Thread Rui Barradas
Hello, Try length.out = max(length(loga), length(logb)) Note also that all of the previous code and the line above assumes that we are interested in the max distance, whereas the KS statistic computes the supremum of the distance. If it's a two sample test then their values are almost surely

Re: [R] Kolmogorov-Smirnov test and the plot of max distance between two ecdf curves

2012-10-05 Thread user1234
Rui, Your response nearly answered a similar question of mine except that I also have ecdfs of different lengths. Do you know how I can adjust x <- seq(min(loga, logb), max(loga, logb), length.out=length(loga)) to account for this? It must be in length.out() but I'm unsure how to proceed.

Re: [R] Kolmogorov-Smirnov test and the plot of max distance between two ecdf curves

2012-05-28 Thread Rui Barradas
Just a final correction. I was wrong, stats::ks.test doesn't use only Marsaglia et al. It's even clearly written in the help page. Read the documentation before stating! Rui Barradas Em 28-05-2012 11:51, maxbre escreveu: > thanks for the help: I'll have a look at the papers > max > > Il 28/05/20

Re: [R] Kolmogorov-Smirnov test and the plot of max distance between two ecdf curves

2012-05-28 Thread maxbre
thanks for the help: I'll have a look at the papers max Il 28/05/2012 12:31, Rui Barradas [via R] ha scritto: > Hello, > > That's a very difficult question. See > > Marsaglia, Tsang, Wang (2003) > http://www.jstatsoft.org/v08/i18/ > > Simard, L'Ecuyer (2011) > http://www.jstatsoft.org/v39/i11 > >

Re: [R] Kolmogorov-Smirnov test and the plot of max distance between two ecdf curves

2012-05-28 Thread Rui Barradas
Hello, That's a very difficult question. See Marsaglia, Tsang, Wang (2003) http://www.jstatsoft.org/v08/i18/ Simard, L'Ecuyer (2011) http://www.jstatsoft.org/v39/i11 R's ks functions are a port of Marsaglia et al. to the .C interface. Rui Barradas maxbre wrote > > thanks rui > > that's what

Re: [R] Kolmogorov-Smirnov test and the plot of max distance between two ecdf curves

2012-05-28 Thread maxbre
thanks rui that's what I was looking for I have another related question: - why of the difference between the max distance D calculated with ks.test() and the max distance D “manually” calculated as in (2)? I guess it has something to do with the fact that KS is obtained with a maximisation th

[R] Kolmogorov-Smirnov test and the plot of max distance between two ecdf curves

2012-05-26 Thread maxbre
Hi all, given this example #start a<-c(0,70,50,100,70,650,1300,6900,1780,4930,1120,700,190,940, 760,100,300,36270,5610,249680,1760,4040,164890,17230,75140,1870,22380,5890,2430) length(a) b<-c(0,0,10,30,50,440,1000,140,70,90,60,60,20,90,180,30,90, 3220,490,20790,290,740,5350,940,

Re: [R] Kolmogorov-Smirnov test and the plot of max distance between two ecdf curves

2012-05-26 Thread Rui Barradas
Hello, Try the following. (i've changed the color of the first ecdf.) loga <- log10(a+1) # do this logb <- log10(b+1) # only once f.a <- ecdf(loga) f.b <- ecdf(logb) # (2) max distance D x <- seq(min(loga, logb), max(loga, logb), length.out=length(loga)) x0 <- x[which( abs(f.a(x) - f.b(x)) ==

Re: [R] Kolmogorov-smirnov test

2011-11-13 Thread karlheinz037
I recently gave a presentation at the 50th Army Operational Research Symposium at Ft Lee describing an implementation of Conover's exact calculation method for the KS test applied to discrete distributions. My implementation was done in Matlab script as opposed to R. Multiple Monte-Carlo trials wer

[R] Kolmogorov-Smirnov-Test on binned data, I guess gumbel-distributed data

2011-11-02 Thread Jochen1980
Hi R-Users, I read some texts related to KS-tests. Most of those authors stated, that KS-Tests are not suitable for binned data, but some of them refer to 'other' authors who are claiming that KS-Tests are okay for binned data. I searched for sources and can't find examples which approve that it

Re: [R] Kolmogorov-Smirnov test

2011-09-26 Thread Greg Snow
801.408.8111 > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Greg Snow > Sent: Monday, September 26, 2011 11:45 AM > To: rommel; r-help@r-project.org > Subject: Re: [R] Kolmogorov-Smirnov test > > There

Re: [R] Kolmogorov-Smirnov test

2011-09-26 Thread Greg Snow
2:30 AM > To: r-help@r-project.org > Subject: Re: [R] Kolmogorov-Smirnov test > > Dear Dr. Snow, >   > Thank you for your reply. >   > 1. Are you doing the 2 sample KS test? Comparing if 2 samples come from > the same distribution? -Yes, I am doing 2-sample KS test >  

Re: [R] Kolmogorov-Smirnov test

2011-09-24 Thread rommel
nes you show. You will need to ask someone who knows the programs you reference to determine what input they are expecting.  R expects the raw data. -Original Message- From: [hidden email] [mailto: [hidden email] ] On Behalf Of rommel Sent: Friday, September 23, 2011 7:51 AM To: [hidden e

Re: [R] Kolmogorov-Smirnov test

2011-09-23 Thread Greg Snow
...@r-project.org] On Behalf Of rommel Sent: Friday, September 23, 2011 7:51 AM To: r-help@r-project.org Subject: Re: [R] Kolmogorov-Smirnov test Dear Dr. Snow, I would like to ask for help on my three questions regarding Kolmogorov Smirnov test. 1. 'With a sample size over 10,000 you will have power

Re: [R] Kolmogorov-Smirnov test

2011-09-23 Thread rommel
Dear Dr. Snow, I would like to ask for help on my three questions regarding Kolmogorov Smirnov test. 1. 'With a sample size over 10,000 you will have power to detect differences that are not practically meaningful. ' -Is sample size of 3000 for each sample okay for using Kolmogorov Smirnov t

Re: [R] Kolmogorov-Smirnov test

2011-05-01 Thread m.marcinmichal
Hi, many thanks for helpful answer. Best Marcin M.-- View this message in context: http://r.789695.n4.nabble.com/Kolmogorov-Smirnov-test-tp3479506p3488364.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing l

Re: [R] Kolmogorov-Smirnov test

2011-04-29 Thread Greg Snow
l 28, 2011 3:54 PM > To: r-help@r-project.org > Subject: Re: [R] Kolmogorov-Smirnov test > > Hi, > thanks for response. > > >> The Kolmogorov-Smirnov test is designed for distributions on > continuous > >> variable, not discrete like the >> poisson.

Re: [R] Kolmogorov-Smirnov test

2011-04-28 Thread m.marcinmichal
This test SnowsPenultimateNormalityTest() is great :) Best -- View this message in context: http://r.789695.n4.nabble.com/Kolmogorov-Smirnov-test-tp3479506p3482401.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org ma

Re: [R] Kolmogorov-Smirnov test

2011-04-28 Thread m.marcinmichal
Hi, thanks for response. >> The Kolmogorov-Smirnov test is designed for distributions on continuous >> variable, not discrete like the >> poisson. That is why you are getting >> some of your warnings. I read in "Fitting distributions whith R" Vito Ricci page 19 that: "... Kolmogorov-Smirnov t

Re: [R] Kolmogorov-Smirnov test

2011-04-28 Thread Greg Snow
> -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of m.marcinmichal > Sent: Wednesday, April 27, 2011 3:23 PM > To: r-help@r-project.org > Subject: [R] Kolmogorov-Smirnov test > > Hi, > I have a problem w

[R] Kolmogorov-Smirnov test

2011-04-27 Thread m.marcinmichal
Hi, I have a problem with Kolmogorov-Smirnov test fit. I try fit distribution to my data. Actualy I create two test: - # First Kolmogorov-Smirnov Tests fit - # Second Kolmogorov-Smirnov Tests fit see below. This two test return difrent result and i don't know which is properly. Which result is prop

Re: [R] Kolmogorov-smirnov test

2011-02-28 Thread Jay Emerson
gt; ks.test::ks.test(c(0,1), ecdf(c(0,1))) One-sample Kolmogorov-Smirnov test data: c(0, 1) D = 0, p-value = 1 alternative hypothesis: two-sided Original Message: Date: Mon, 28 Feb 2011 21:31:26 +1100 From: Glen Barnett To: tsippel Cc: r-help@r-project.org Subject: Re: [R] Kolmogorov-s

Re: [R] Kolmogorov-smirnov test

2011-02-28 Thread Glen Barnett
It's designed for continuous distributions. See the first sentence here: http://en.wikipedia.org/wiki/Kolmogorov%E2%80%93Smirnov_test K-S is conservative on discrete distributions On Sat, Feb 19, 2011 at 1:52 PM, tsippel wrote: > Is the kolmogorov-smirnov test valid on both continuous and discr

Re: [R] Kolmogorov-smirnov test

2011-02-18 Thread Greg Snow
r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of tsippel > Sent: Friday, February 18, 2011 7:52 PM > To: r-help@r-project.org > Subject: [R] Kolmogorov-smirnov test > > Is the kolmogorov-smirnov test valid on both continuous and discrete > data? &

[R] Kolmogorov-smirnov test

2011-02-18 Thread tsippel
Is the kolmogorov-smirnov test valid on both continuous and discrete data? I don't think so, and the example below helped me understand why. A suggestion on testing the discrete data would be appreciated. Thanks, a <- rnorm(1000, 10, 1);a # normal distribution a b <- rnorm(1000, 12, 1.5);b # no

Re: [R] Kolmogorov Smirnov Test

2010-11-11 Thread Kerry
.D. > Statistical Data Center > Intermountain Healthcare > greg.s...@imail.org801.408.8111begin_of_the_skype_highlighting  801.408.8111  end_of_the_skype_highlighting > > > > > -Original Message- > > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- >

Re: [R] Kolmogorov Smirnov Test

2010-11-11 Thread Greg Snow
-Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Kerry > Sent: Thursday, November 11, 2010 12:02 AM > To: r-help@r-project.org > Subject: Re: [R] Kolmogorov Smirnov Test > > Thanks for the feedback. My goal is to run a

Re: [R] Kolmogorov Smirnov Test

2010-11-11 Thread Ted Harding
On 11-Nov-10 04:22:55, Kerry wrote: > I'm using ks.test (mydata, dnorm) on my data. I think your problem may lie here! If you look at the documentation for ks.test, available with the command: help("ks.test") or simply: ?ks.test you will read the following near the beginning: Usage: ks.test(

Re: [R] Kolmogorov Smirnov Test

2010-11-11 Thread Kerry
> > > > > -Original Message- > > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > > project.org] On Behalf Of Kerry > > Sent: Wednesday, November 10, 2010 9:23 PM > > To: r-h...@r-project.org > > Subject: [R] Kolmogorov Smirnov Test &g

Re: [R] Kolmogorov Smirnov Test

2010-11-10 Thread Greg Snow
PM > To: r-help@r-project.org > Subject: [R] Kolmogorov Smirnov Test > > I'm using ks.test (mydata, dnorm) on my data. I know some of my > different variable samples (mydata1, mydata2, etc) must be normally > distributed but the p value is always < 2.0^-16 (the 2.0 can change &

[R] Kolmogorov Smirnov Test

2010-11-10 Thread Kerry
I'm using ks.test (mydata, dnorm) on my data. I know some of my different variable samples (mydata1, mydata2, etc) must be normally distributed but the p value is always < 2.0^-16 (the 2.0 can change but not the exponent). I want to test mydata against a normal distribution. What could I be doing

Re: [R] Kolmogorov-Smirnov test, which one to use?

2010-08-05 Thread Greg Snow
age- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Roslina Zakaria > Sent: Wednesday, August 04, 2010 8:34 PM > To: r-help@r-project.org > Subject: [R] Kolmogorov-Smirnov test, which one to use? > > Hi, > > I have two sets

[R] Kolmogorov-Smirnov test, which one to use?

2010-08-04 Thread Roslina Zakaria
Hi, I have two sets of data, an observed data and generated data. The generated data is obtained from the model where the parameters is estimated from the observed data. So I'm not sure which to use either one-sample test ks.test(x+2, "pgamma", 3, 2) # two-sided, exact or two-sample test ks.

Re: [R] Kolmogorov smirnov test

2009-10-12 Thread Moshe Olshansky
On Tue, 13/10/09, Roslina Zakaria wrote: > From: Roslina Zakaria > Subject: [R] Kolmogorov smirnov test > To: r-help@r-project.org > Received: Tuesday, 13 October, 2009, 9:58 AM > > Hi r-users, >   > I would like to use Kolmogorov smirnov test but in my > observed dat

[R] Kolmogorov smirnov test

2009-10-12 Thread Roslina Zakaria
Hi r-users,   I would like to use Kolmogorov smirnov test but in my observed data(xobs) there are ties.  I got the warning message.  My question is can I do something about it?   ks.test(xobs, xsyn)       Two-sample Kolmogorov-Smirnov test data:  xobs and xsyn D = 0.0502, p-value = 0.924 al

Re: [R] Kolmogorov-Smirnov test

2009-04-29 Thread Richardson, Patrick
roject.org [mailto:r-help-boun...@r-project.org] On Behalf Of mathallan Sent: Wednesday, April 29, 2009 10:52 AM To: r-help@r-project.org Subject: [R] Kolmogorov-Smirnov test I got a distribution function and a empirical distribution function. How do I make to Kolmogorov-Smirnov test in R. Let

Re: [R] Kolmogorov-Smirnov test

2009-04-29 Thread Andrew Dolman
help.search("kolmogorov") ?ks.test andydol...@gmail.com 2009/4/29 mathallan > > I got a distribution function and a empirical distribution function. How do > I > make to Kolmogorov-Smirnov test in R. > > Lets call the empirical distribution function >Fn on [0,1] > and the

[R] Kolmogorov-Smirnov test

2009-04-29 Thread mathallan
I got a distribution function and a empirical distribution function. How do I make to Kolmogorov-Smirnov test in R. Lets call the empirical distribution function >Fn on [0,1] and the distribution function >F on [0,1] ks.test( ) thanks for the help -- View this

[R] Kolmogorov–Smirnov Test for Left Censored Data

2008-11-20 Thread Tom La Bone
Can someone recommend a package in R that will perform a two-sample Kolmogorov–Smirnov test on left censored data? The package "surv2sample" appears to offer such a test for right censored data and I guess that I can use this package if I flip my data, but I figured I would first ask if there was