similar to: Optimising code

Displaying 20 results from an estimated 3000 matches similar to: "Optimising code"

2003 Oct 07
3
FW: Optimising code
>> I have a function that applies a wilcoxon test to 12 sets of about a quarter of a million pairs > ... and let me guess: everything is significiant to an almost arbitrary > value of \alpha? :-) For each of quarter of a million sets, I do a wilcoxon between two pairs each containing twenty numbers... I do this 12 times... > > (and takes about 3 hours). I've replaced the
2003 Oct 07
1
.First.lib doesn't appear to be running after calling lib rary()
Thanks - it is indeed the first '.' that's the problem... Crispin > -----Original Message----- > From: Liaw, Andy [mailto:andy_liaw at merck.com] > Sent: 07 October 2003 15:21 > To: Crispin Miller > Subject: RE: [R] .First.lib doesn't appear to be running after calling > lib rary() > > > I put .First.lib in the file "zzz.R", and it works for
2004 Jan 22
1
File permissions and packages, openVignette
Hi, I've got a quick question about file permissions and packages... I'm creating my own package, and am having problems with its vignette not being seen when I install it into R... As I understand it, the permissions of the source tree should be as follows: o Directories - drwxrwxr-- o Files - -rw-r--r-- Everything builds and runs through 'R CMD check' fine with
2003 Oct 06
4
Apply and its friends
Hi, Forgive a very basic question... I need to take two lists-of-lists, and apply a function to each pair of elements in the lists to return a single list... For example l1 <- list(1:5,6:10,2:15) l2 <- list(1:8,4:12,1:19,4:20) I could easily do an lapply across each of them, but is there a function that does a sort-of pairwise-apply across both together? Does anybody know of a good
2011 Apr 12
2
The three routines in R that calculate the wilcoxon signed-rank test give different p-values.......which is correct?
I have a question concerning the Wilcoxon signed-rank test, and specifically, which R subroutine I should use for my particular dataset. There are three different commands in R (that I'm aware of) that calculate the Wilcoxon signed-rank test; wilcox.test, wilcox.exact, and wilcoxsign_test. When I run the three commands on the same dataset, I get different p-values. I'm hoping that
2003 Jun 11
1
qwilcox
The function 'wilcox.test' in R and S gives (almost) identical results (see below). 'qwilcox' however, does not: > qwilcox(p,5,5) p: 0.025 0.975 -------------------- R> 3 22 S> 18 37 I originally wanted to ask a questions, but then I found the answer. Given the confusion I run into, I wonder if this experience is worth reporting. The
2005 May 04
4
rank of a matrix
how do I check the rank of a matrix ? say A= 1 0 0 0 1 0 then rank(A)=2 what is this function? thanks I did try help.search("rank"), but all the returned help information seem irrelevant to what I want. I would like to know how people search for help information like this. rank(base) Sample Ranks SignRank(stats) Distribution of the
2009 Oct 23
4
How to apply the Wilcoxon test to a hole table at once?
Hi, I have a data set: > Dataset X1 X2 X3 X4 X5 X6 X7 X8 X9 X10 X11 X12 X13 X14 X15 X16 X17 1 user1 m 22 19 28 24 12 18 9 7 4 5 4 7 5 7 9 2 user2 f 25 19 23 18 18 15 6 8 6 6 7 10 7 7 7 3 user3 f 28 21 24 18 15 12 10 6 7 9 5 10 5 9 5 4 user4 f 26 19 26 21 12 18 6 6 5 1 3 8 6 5 6 5 user5 m 21 22 26 18 9 6 4 6 1
2003 Dec 01
2
wilcoxon-pratt signed rank test in R - drug-effiacy
Hi. I'm going to introduce the R-package for a group of medical doctors later this week and is a little confused about there use of a test named "willcoxon-pratt" for testing if the clinical and biochemical markers has decreased significantly after the use of some drugs for a group of patients. Looking into the R-functions I would in R recommand using a matched-pairs Wilcoxon
2000 Dec 18
2
Help: StatXact
Help needed! Has anyone access to StatXact? I just hacked exact two-sided p-values for rank tests (for package exactDistr, which will move to CRAN/contrib as exactRankTests soon ;-) and would like to compare the results of my implementation to that of StatXact. Could someone please calculate the exact one-sided (both greater and less) and two-sided p-values? # Data from the StatXact-4 manual,
2005 Nov 14
1
effect sizes for Wilcoxon tests
Hello, I use t.test for normal distributed and wilcox.test for non-normal distributed samples. It is easy to write a function for t.test that calculates the effect size, because all parts of the formula are available from the t.test result: r = sqrt(t*t / (t*t + df)) However, for Wilcoxon tests, the formula for effect sizes is: r = Z / sqrt(N) I wonder how I can calculate the Z-score in R for
2010 Aug 10
1
one (small) sample wilcox.test confidence intervals
Dear R people, I notice that the confidence intervals of a very small sample (e.g. n=6) derived from the one-sample wilcox.test are just the maximum and minimum values of the sample. This only occurs when the required confidence level is higher than 0.93. Example: > sample <- c(1.22, 0.89, 1.14, 0.98, 1.37, 1.06) > summary(sample) Min. 1st Qu. Median Mean 3rd Qu. Max.
2012 Nov 25
2
Finding the Degrees of Freedom in a Wilcoxon Test
Dear R-ers, I am currently running some Wilcoxon tests in R-64. How do I find the degrees of freedom in the output I am receiving? > wilcox.test(good$TRUE, good$x4a, paired=FALSE) Wilcoxon rank sum test with continuity correction data: good$TRUE and good$x4a W = 2455, p-value < 2.2e-16 alternative hypothesis: true location shift is not equal to 0 Thank you, Stephen.
2010 Jun 23
3
Wilcoxon signed rank test and its requirements
Hi all, I have a distribution, and take a sample of it. Then I compare that sample with the mean of the population like here in "Wilcoxon signed rank test with continuity correction": > wilcox.test(Sample,mu=mean(All), alt="two.sided") Wilcoxon signed rank test with continuity correction data: AlphaNoteOnsetDists V = 63855, p-value = 0.0002093 alternative hypothesis:
2007 Jun 14
1
Wilcoxon test on data matrix
Dear everyone, I am trying to do a Wilcoxon one-sided test on my gene expression data. These are the data i have in R: data.matrix (matrix, numeric) containing all gene expression data (42 rows=genes, 42 columns=tumors), no column header or row names data.cl (vector, numeric) consisting of 42 0's and 1's to indicate class 0 or class 1 for each column in data.matrix I want to do a
2019 Dec 12
2
Inconsistencies in wilcox.test
>>>>> Karolis Koncevi?ius >>>>> on Mon, 9 Dec 2019 23:43:36 +0200 writes: > So I tried adding Infinity support for all cases. > And it is (as could be expected) more complicated than I thought. "Of course !" Thank you, Karolis, in any case! > It is easy to add Inf support for the test. The problems start with conf.int=TRUE.
2006 Aug 25
1
exact Wilcoxon signed rank test with ties and the "no longer under development" exactRanksumTests package
Dear List, after updating the exactRanksumTests package I receive a warning that the package is not developed any further and that one should consider the coin package. I don't find the signed rank test in the coin package, only the Wilcoxon Mann Whitney U-Test. I only found a signed rank test in the stats package (wilcox.test) which is able to calculate the exact pvalues but unfortunately
2010 Aug 09
1
Difference Between R: wilcox.test and STATA: signrank
This is my first post to the mailing list and I guess it's a pretty stupid question but I can't figure it out. I hope this is the right forum for these kind of questions. Before I started using R I was using STATA to run a Wilcoxon signed-rank test on two variables. See data below:
2019 Dec 07
2
Inconsistencies in wilcox.test
Thank you for a fast response. Nice to see this mailing list being so alive. Regarding Inf issue: I agree with your assessment that Inf should not be removed. The code gave me an impression that Inf values were intentionally removed (since is.finite() was used everywhere, except for paired case). I will try to adjust my patch according to your feedback. One more thing: it seems like you
2010 Nov 24
2
Wilcoxon Rank Sum in R with a multiple testing correction
Hi there, I'm a total newbie to R. I'd like to use a Wilcoxon Rank Sum test to compare two populations of values. Further, I'd like to do this simultaneously for 114 sets of values. The two populations are C and N. The different sets of values have arbitrary names (I'll call them a, b, c etc). The set-up is as follows: a b c d .... C 2 C 3 C 5 C 9 C 4