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
It's
Subject: Re: [R] Kolmogorov-Smirnov Test
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
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
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.
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
Subject:
Re: [R] 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
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
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 I
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
R's ks
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/2012
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)) ==
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,
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
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
: [R] Kolmogorov-Smirnov test
Dear Dr. Snow,
nbsp;
Thank you for your reply.
nbsp;
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
nbsp;
2. With 3,000 points you will still likely have power to find
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 are criteria to tell
Of
rommel Sent: Friday, September 23, 2011 7:51 AM To: [hidden email] 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 to detect differences
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
-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 to detect
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
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. That is why you are
getting
some of your warnings.
I read in Fitting
-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 with Kolmogorov-Smirnov test fit. I
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 test is
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
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
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 tsip...@gmail.com wrote:
Is the kolmogorov-smirnov test valid on both
: Re: [R] Kolmogorov-smirnov test
Message-ID:
aanlktikcjigrgjuotkozqfxfqatin6arzjvt_appi...@mail.gmail.com
Content-Type: text/plain; charset=ISO-8859-1
It's designed for continuous distributions. See the first sentence here:
http://en.wikipedia.org/wiki/Kolmogorov%E2%80%93Smirnov_test
K-S
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 #
...@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?
I don't think so, and the example
-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
I'm using ks.test (mydata, dnorm) on my data. I know some of my
different variable samples (mydata1, mydata2, etc) must be normally
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(x,
-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 simple test to show that
the data cannot be rejected
end_of_the_skype_highlighting
-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-h...@r-project.org
Subject: Re: [R] Kolmogorov Smirnov Test
Thanks for the feedback. My goal
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
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
but not the exponent).
I want to test mydata against
-
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 of data, an observed data and generated data
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
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
.
--- On Tue, 13/10/09, Roslina Zakaria zrosl...@yahoo.com wrote:
From: Roslina Zakaria zrosl...@yahoo.com
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 data(xobs
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
help.search(kolmogorov)
?ks.test
andydol...@gmail.com
2009/4/29 mathallan mathanm...@gmail.com
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]
[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.
Lets call
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 a
43 matches
Mail list logo