Displaying 20 results from an estimated 10000 matches similar to: "Permutation tests for correlations"
2012 Jul 12
1
permutation test on paired samples
Hi,
I'm trying to run a permutation test on paired samples.
First I tried the package "exactRankTests":
require("exactRankTests")
x <- c(1.83,0.50,1.62,2.48,1.68,1.88,1.55,3.06,1.30)
y <- c(0.878,0.647,0.598,2.05,1.06,1.29,1.06,3.14,1.29)
wilcox.test(x,y,paired = TRUE,alternative = "greater")
perm.test(y,x,paired = TRUE,exact = TRUE,alternative =
2009 Oct 27
1
wilcox.exact() problem
Dear R friends,
here I write again about the wilcox.exact() problem. I want to compare two sets of categorical data, and in one case it says "negative length vectors not allowed", and in the other one I get the error "cannot allocate vector of length ...".
On http://rapidshare.com/files/298621893/wilcox.exact_trouble.Rdata.html you can download the data that cause the
2006 May 03
1
Permutation test of marked point pattern
Dear R users,
I am trying to perform a hypothesis test on a marked point pattern. I
would like to calculate the mean of the absolute value of the
difference of marks between nearest neigbours, randomize the marks
among points, then calculate this mean again. Ideally, I would test
whether random mean values smaller than the observed mean value occur
less than 5% of the time. I suppose 1000
2017 Sep 08
0
one sample permutation test using package 'coin'
Using the package ?exactRankTests? one can execute a one-sample permutation test for a hypothesized location parameter of 0 like:
perm.test(rnorm(30,0))
The package ?exactRankTests? seems now to be deprecated in favor of the ?coin? package which as I understand is a superset of ?exactRankTests? in terms of functionality.
The ?coin? package allows one to run a two-sample permutation test using
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
2010 Feb 08
1
Wilcoxon signed-ranks test using package coin ?
Given the following data, and hypothesized median M.0 I've found a
method to implement the Wilcoxon signed-rank test.
Data: (with one zero difference and tied ranks)
x <- c(136, 103, 91, 122, 96, 145, 140, 138, 126, 120, 99, 125,
91,142, 119, 137)
M.0 <- 119
> library(exactRankTests)
Package ?exactRankTests? is no longer under development.
Please consider using package ?coin?
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
2002 Dec 12
2
t-test bootstrap versus permutation question
Hi,
I have a little problem that puzzles me about contradictory results returned
by a bootstraped t-test (as in MASS 3rd ed p. 146) versus a permutation
t-test (as in MASS 3rd ed, p 147).
Data are measurements done on 100 cells in 9 slides of fish blood. With one
method, cells are randomly sampled, and with the other method, the operator
selects cells arbitrarily (in a way it is done usually
2009 Oct 16
2
"negative length vectors are not allowed" in wilcox.exact() and perm.test()
Dear R friends,
I want to compare two datasets and I get the message
Error in .Call("cpermdist2", ma = as.integer(m), mb = as.integer(col), :
negative length vectors are not allowed
after specifying the exact test. I'm using the exactRankTests package. Do you suggest me using the coin library, or is there anything "wrong" with my data?
Kind regards,
David
--
2013 Sep 23
1
Permutation Test on Interactions {coin}
Dear List,
I'm interested in performing a permutation test on the interaction between
a binary treatment indicator and a covariate (either continuous or
categorical). I'm interested in the p-value of the interaction effect from
a permutation test, and I'm using the coin package for that purpose.
As I haven't seen any examples like this in the package documentation (or
anywhere
2013 May 30
1
wilcox_test function in coin package
Dear All,
I have two simple data samples (no groups or factors, etc.) and would just
like to compute the two-sample Wilcoxon Rank Sum test using the wilcox_test
function contained in the coin package, which is reportedly better than the
regular wilcox.test function because it performs some adjustment for ties.
Would anyone know how to craft a script to perform this task? Much
appreciated.
Janh
2011 Oct 14
2
non-parametric permutation and signed paired-difference distributions
Hi all
Consider the classic data below from Darwin on the heights of 15 pairs
of zea mays (corn) plants
either cross-fertilized or self-fertilized, where the goal is to see if
it makes a difference.
> head(ZeaMays)
pair pot cross self diff
1 1 1 23.500 17.375 6.125
2 2 1 12.000 20.375 -8.375
3 3 1 21.000 20.000 1.000
4 4 2 22.000 20.000 2.000
5 5 2 19.125
2009 Oct 25
1
A naive question about permutation tests in the coin package
Dear R helpers,
I am trying to understand how to use the independence_test function in
the coin package. I think I suffer from a misunderstanding about what
the package does. Either that or I do not understand how to use it
properly. Specifically, I cannot understand if I can test independence
of arbitrary statistics.
Take the following example:
set.seed(10)
d <- data.frame(y = c(rnorm(10,
2007 Mar 16
2
MANOVA permutation testing
Hi,
I've got a dataset with 7 variables for 8 different species. I'd like
to test the null hypothesis of no difference among species for these
variables. MANOVA seems like the appropriate test, but since I'm
unsure of how well the data fit the assumptions of equal
variance/covariance and multivariate normality, I want to use a
permutation test.
I've been through CRAN looking at
2010 May 30
2
Question about package coin
Anyone know if coin can run a permutation test based on a (user-defined) statistic other than the mean difference? The function independence_test does the permutation t-test via difference in means. I'm wondering if it's possible to use independence_test to run a permutation test for some other statistic than the difference in means. For example, I'd like to run a permutation test
2007 Nov 02
4
Permutation test, grouped data
I am perfectly aware that this question is not an R question, at least
not yet, but I have not succeeded in finding what I want in other
ways, so ...
What I am looking for are two algorithms, preferabley in Pascal, but
other languages may do. For (a) systematic (complete) permutations
for grouped data with unequal group sizes, and (b) random permutations
for the same kind of data. I know
2006 Sep 29
1
Wilcoxon Rank test of Package Coin
Hi,
I am running the following example which can be found on page 12 of the pdf file of COIN package
wt<-wilcox_test(pd~age,data=water_transfer,distribution="exact", conf.int=TRUE)
"wt" actually contains the estimate of difference in location and the confidence interval of it. I am just wondering how can I extract these values? From the examples, I understand that the
2008 Apr 06
3
Multiset Permutations
Dear R users,
I want to perform an exact permutation of multisets. I have looked at the
coin package, but it doesn't seem to offer what I am looking for. I want to
perform permutations (exact - without duplications) on multisets of scalars
(e.g., the multiset 0,0,1,2,2). I want to output all the possible
permutations into a data frame so that each multiset permutation occupies a
row (or
2006 Jul 20
3
Permutation Distribution
Hallo
Is there an elegant way to do the following:
Dataset consists of 2 variables: var1: some measurements, and var2: a grouping variable with two values, 1 and 2.
There are (say) 10 measurements from group 1 and 15 measurements from group 2.
The idea is to study the permutation distribution of mean(group 1) * mean(group2).
One way would be to permute 1s and 2s and select the corresponding
2008 Dec 08
2
Permutation exact test to compare related series
I all,
is there a way with R to perform an exact permutation test to replace the
wilcoxon test to compare paired series and/or to perform pairwise multiple
comparisons for related series after a Friedman test ?
Thanks
Gilles