similar to: cor.test(method = spearman, exact = TRUE) not exact (PR#14095)

Displaying 20 results from an estimated 200 matches similar to: "cor.test(method = spearman, exact = TRUE) not exact (PR#14095)"

2004 May 20
1
Spearman probabilities and SuppDists
cor.test and SuppDists give me different P-values for the same Spearman's rho. Which is correct, or am I doing something wrong? > x <- c(44.4, 45.9, 41.9, 53.3, 44.7, 44.1, 50.7, 45.2, 60.1) > y <- c( 2.6, 3.1, 2.5, 5.0, 3.6, 4.0, 5.2, 2.8, 3.8) > cor.test(x,y,method="spearman") Spearman's rank correlation rho data: x and y S = 48, p-value =
2009 Jan 17
1
bug in cor.test(method = "spearman")
Dear R developers: There is a possible bug in calculating the p-value for Spearman's rank correlation. Line 155 in file R-patched/src/library/stats/R/cor.test.R is as.double(round(q) + lower.tail), I think, it should be as.double(round(q) + 2*lower.tail), The reason is that round(q) is expected to be an even number (the S statistic), so the next feasible value is round(q)+2.
2004 Oct 14
1
correlating between two vectors of numbers
Hi, R! Question1: I am trying to correlate two vectors of numbers (two columns of microarray signal values) by using the non-parametric Spearman's rank correlation coefficient rho: > cor.test(V2.Signal,V3.Signal,method="spearman") but I get the error message: Error in if (q > (n^3 - n)/6) pspearman(q - 1, n, lower.tail = FALSE) else pspearman(q, : missing value
2000 Sep 22
3
[?] RPM install problems (Linux)
When I try to install the R RPM under Mandrake Linux 7.1 (intel), I get the following error: [root at edgeworth programs]# rpm -ivh R-base-1.1.1-1.i386.rpm error: failed dependencies: libreadline.so.3 is needed by R-base-1.1.1-1 [root at edgeworth programs]# I do have realine installed: [root at edgeworth programs]# rpm -qa | grep readline readline-4.1-4mdk and
2005 Aug 23
0
NAs by integer overflow in Spearman's test p-value (PR#8087)
Full_Name: Jan T. Kim Version: 2.1.0 (and better) OS: Linux Submission from: (NULL) (139.222.3.229) The p value in Spearman's test is NA if the length of x exceeds 46340, due to an integer overflow, occurring if length(n) > sqrt(2^31): > n <- 46341; > set.seed(1); > x <- runif(n); > y <- runif(n); > cor.test(x, y, method =
2005 Aug 23
0
(PR#8087) NAs by integer overflow in Spearman's test p-value
There is an even simpler way: someone wrote n*(n^2-1) as n*(n-1)*(n+1) and caused the problem. Your superfluous semicolons do definitely make your code harder to read. On Tue, 23 Aug 2005 jtk at cmp.uea.ac.uk wrote: > Full_Name: Jan T. Kim > Version: 2.1.0 (and better) > OS: Linux > Submission from: (NULL) (139.222.3.229) > > > The p value in Spearman's test is NA if
2003 Apr 01
2
cor.test observations limit
Hi, Is there a limit on the number of observations for using cor.test. For example, > library(ctest) > cor.test(rnorm(3000), rnorm(3000), method="spearman") Error in if (q > (n^3 - n)/6) pspearman(q - 1, n, lower.tail = FALSE) else pspearman(q, : missing value where logical needed In addition: Warning message: NAs introduced by coercion I mainly want to calculate
2009 Mar 05
1
Spearman's rank correlation test (PR#13574)
Full_Name: Petr Savicky Version: 2.7.2, 2.8.1, 2.9.0 OS: Linux Submission from: (NULL) (147.231.6.9) The p-value of Spearman's rank correlation test is calculated in cor.test(x, y, method="spearman") using algorithm AS 89. However, the way how AS 89 is used incures error, which may be an order of magnitude larger than the error of the original algorithm. The paper, which
1999 May 13
2
R under Red Hat Linux 6.0
I have just upgraded from Red Hat Linux 5.2 to version 6.0 (with GNOME) on an intel box. I have also upgraded to the latest R version (0.64.1-2 rpm) and have also installed the corresponding GNOME rpm. However, I am not able to start R: [cribari at edgeworth install]$ R /usr/lib/R/bin/R.binary: error in loading shared libraries: /usr/lib/R/bin/R.binary: undefined symbol: __setfpucw [cribari at
1999 Jan 30
3
installing R under RH Linux 5.2
I am trying to install R under Red Hat Linux 5.2, but the following error happens: [root at edgeworth cribari]# rpm -ivh R-base-0.63.2-1.i386.rpm failed dependencies: libncurses.so.3.0 is needed by R-base-0.63.2-1 I must be missing something very simple. I would appreciate any guidance. Thanks. FC. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help
2003 Nov 07
2
Bug in cor.test - Spearman
Greetings. There seems to be a problem with the P-value computation in the cor.test with method="spearman". In R1.8.0 (MS Windows) I seem to be getting intermittently nonsense P-values, but the rho's are OK. I can get this reproducibly with the toy example attached where the first use is OK and subsequent calls with the same data give nonsense. (I have also seen the problem
2009 Feb 12
0
Spearman's rank correlation test
Hi All: help(cor.test) claims For Spearman's test, p-values are computed using algorithm AS 89. Algorithm AS 89 was introduced by the paper D. J. Best & D. E. Roberts (1975), Algorithm AS 89: The Upper Tail Probabilities of Spearman's rho. Applied Statistics, Vol. 24, No. 3, 377-379. Table 1(a) in this paper presents maximum absolute error |\Delta_m|, of the approximation for
2004 Mar 15
1
spearman rank correlation problem
Hello R gurus, I want to calculate the Spearman rho between two ranked lists. I am getting results with cor.test that differ in comparison to my own spearman function: > my.spearman function(l1, l2) { if(length(l1) != length(l2)) stop("lists must have same length") r1 <- rank(l1) r2 <- rank(l2) dsq <- sapply(r1-r2,function(x) x^2) 1 - ((6 * sum(dsq))
2005 Mar 17
1
exact p-value for Spearman, with ties
Dear R, I'm looking for exact p-values for Spearman's rank correlation in the presence of ties. This is available in StatXact and SPSS, but I haven't yet found it in R. Has anyone implemented this? -- Paul H Artes Assist Prof, Ophth Vis Sci Dalhousie University, QEII Eye Care Centre Halifax, NS, CANADA
2006 Sep 13
1
S in cor.test(..., method="spearman")
Dear HelpeRs, I have some data: "ice" <- structure(c(0.386, 0.374, 0.393, 0.425, 0.406, 0.344, 0.327, 0.288, 0.269, 0.256, 0.286, 0.298, 0.329, 0.318, 0.381, 0.381, 0.47, 0.443, 0.386, 0.342, 0.319, 0.307, 0.284, 0.326, 0.309, 0.359, 0.376, 0.416, 0.437, 0.548, 41, 56, 63, 68, 69, 65, 61, 47, 32, 24, 28, 26, 32, 40, 55, 63, 72, 72, 67, 60, 44, 40, 32, 27, 28, 33,
2011 Nov 01
1
How to interpret Spearman Correlation
Hi, I am not really familiar with Correlation foundations, although I read a lot. So maybe if someone kindly help me to interpret the following results. I had the following R commands: correlation <-cor( vector_CitationProximity , vector_Impact, method = "spearman", use="na.or.complete") cor_test<-cor.test(vector_CitationProximity, vector_Impact,
2006 Dec 05
1
Spearman correlation ties and discrepancies
Hi. I am currently trying to run some Spearman correlations, and have encountered two issues. 1) When using cor.test() with a variable that includes ties, I get the "Cannot compute exact p-values with ties" error. I have read that this function now uses an asymptotic formula that allows for ties, so do not understand why I am getting this error. (I am running version 2.4.0.) I
2010 Jun 03
3
ordinal variables
Dear colleagues, I teach statistics using SPSS. I want to use R instead. I hit on one problem and I need some quick advice. When I want to work with ordinal variables, in SPSS I can compute the median or create a barchart or compute a spearman correlation with no problems. In R, if I "read" the ordinal variable as numeric, then I cannot do a barplot because I miss the category names. If
2003 May 01
3
Test statistic for Spearman correlation
In the ouput below, what is the "S" statistic (S = 96) that is used for Spearman? I don't have easy access to the books cited on the help page. Other texts and web sources that I have found use t or z as a test for Spearman, perhaps inappropriately. Can anyone tell me how S is computed or refer to a web resource? I see from the code for that: q <- as.integer((n^3 - n) * (1
2005 Oct 24
2
Spearman's Rho Help!
Hi, I have a dataset with four categories of data, the number of samples are not the same in each category. I want to find the Spearaman's Rho. Let me give an example. x=(14.22770439,26.49420624,46.7277932,19.02550707,23.37379361,16.97789862,19.77100085,23.11270162,13.72929843,33.54430621,14.4756979,70.15811106,11.22789833,NA,NA,NA)