Hi, On Mar 15, 2012 4:28 AM, "Aparna Sampath" <aparna.sampat...@gmail.com> wrote: > > Hi All > > I would like to compute the raw p-value from permutation tests and I found > mt.sample.rawp() from the package multtest almost similar to what I want to > do. But in the function definition: > > mt.sample.rawp(V,classlabel,test="t",side="abs",fixed.seed.sampling="y",B=10000,na=.mt.naNUM,nonpara="n") > > I would like to choose my own t-test which is designed using my model > parameters, so it is like a modification of t-test. I would like to use this > t-test instead of the ones in the list. I am not sure if this can be done. > Can anyone tell me how to do it, if it is possible. > > the other way I tried is to copy the function and and modify it.
Indeed, that's the way to customize functions. > But it uses > internal functions from the package like mt.checkothers() which I do not > know perform what kind of function. I tried to access its function > definition, but I was not able to do so. is there some other way I could see > what these internal functions do, so that I could possibly try to use the > same logic and write the code. If you download the package source from CRAN, you'll have all of it, including any comments that have been stripped out. > Appreciate all help. Thanks a lot :) > > Regards > Ap > Sarah [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.