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

Regards
Ap

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

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

Reply via email to