[R] Question about permutation test

2011-09-16 Thread song_gpqg
Hi! I am doing a permutation test on 7 data randomly selected into two groups, one has 4 and the other 3. The purpose is to list all the 35 possible outcomes and calculate p-value. I googled the function perm.test() and not sure if my usage is correct. So I set a=c(7 data), b=(1,1,1,1,2,2,2) which

[R] onet.permutation()

2011-09-17 Thread song_gpqg
I saw the manual of this function but not sure what to do. I have a array contain 7 numbers and want to choose 4 to do permutation test. But using this function with parameters as onet.permutation(scores,4), it returns 0. Instead, with no parameter, onet.permutation(), it returns something but eve

Re: [R] onet.permutation()

2011-09-17 Thread song_gpqg
Oh I see the problem. Many thanks! -- View this message in context: http://r.789695.n4.nabble.com/onet-permutation-tp3820372p3820721.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.c

[R] perm.test()

2011-09-18 Thread song_gpqg
Hi! I am doing a two sample permutation test and trying to find confidence interval. perm.test() seems can do that but when the vector contains negative numbers it occurs an error. And for perm.test(x,y), elements in x can't be more than in y. I am wondering how I can fix these two problems? Thanks

[R] question about string to boor?

2011-10-10 Thread song_gpqg
Hello! So I am handling this problem with some arrays grp1-grp7, I want to write a loop to avoid tedious work, but I don't know how to transform string to boor? For example I used i=1 paste("grp",i, sep="") I only got "grp1" instead of grp1, which can't be manipulate using mean() or other functi

Re: [R] question about string to boor?

2011-10-11 Thread song_gpqg
Thanks guys, that's a great help. Nellie -- View this message in context: http://r.789695.n4.nabble.com/question-about-string-to-boor-tp3890983p3894996.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list