Re: [R] Siegel-Tukey test for equal variability (code)

2012-03-11 Thread Tal Galili
Update: The siegel Tukey code is now fixed (both on the github page, and the blog's post): https://github.com/talgalili/R-code-snippets/blob/master/siegel.tukey.r http://www.r-statistics.com/2010/02/siegel-tukey-a-non-parametric-test-for-equality-in-variability-r-code/ Best, Tal On Sat, Mar 1

Re: [R] Siegel-Tukey test for equal variability (code)

2012-03-09 Thread Tal Galili
With coordination with the code's author (Daniel), The updated code has been uploaded to github here: https://github.com/talgalili/R-code-snippets/blob/master/siegel.tukey.r And also the following post was updated with the code: http://www.r-statistics.com/2010/02/siegel-tukey-a-non-parametric-test

Re: [R] Siegel-Tukey test for equal variability (code)

2012-03-09 Thread Daniel Malter
#The code of rank 1 in the previous post should have read #rank1<-apply(iterator1,1,function(x) x+base1) #corrected code below siegel.tukey=function(x,y,id.col=TRUE,adjust.median=F,rnd=-1,alternative="two.sided",mu=0,paired=FALSE,exact=FALSE,correct=TRUE,conf.int=FALSE,conf.level=0.95){ if(id.col=

Re: [R] Siegel-Tukey test for equal variability (code)

2012-02-28 Thread Daniel Malter
The previously posted code contains bugs. The code below should work: x: a vector of data y: Group indicator (if id.col=TRUE); data of the second group (if id.col=FALSE). If y is the group indicator it MUST take 0 or 1 to indicate the groups, and x must contain the data for both groups. id.col:

[R] Siegel-Tukey test for equal variability (code)

2010-02-22 Thread Daniel Malter
Hi, I recently ran into the problem that I needed a Siegel-Tukey test for equal variability based on ranks. Maybe there is a package that has it implemented, but I could not find it. So I programmed an R function to do it. The Siegel-Tukey test requires to recode the ranks so that they express vari