[R] substituting own test statistics in a built-in function

Aparna Sampath aparna.sampath26 at gmail.com
Thu Mar 15 08:59:38 CET 2012

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:

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. 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. 

Appreciate all help. Thanks a lot :)


View this message in context: http://r.789695.n4.nabble.com/substituting-own-test-statistics-in-a-built-in-function-tp4474162p4474162.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list