Hi, there: for some reason, I need to look at t.test at coding level. Can anyone here suggest a place to start with? thanks.
Weiwei Shi, Ph.D Research Scientist GeneGO, Inc. "Did you always know?" "No, I did not. But I believed..." ---Matrix III
3 messages · Weiwei Shi, Charles C. Berry
Hi, there: for some reason, I need to look at t.test at coding level. Can anyone here suggest a place to start with? thanks.
Weiwei Shi, Ph.D Research Scientist GeneGO, Inc. "Did you always know?" "No, I did not. But I believed..." ---Matrix III
Hi, there: for some reason, I need to look at t.test at coding level. Can anyone here suggest a place to start with?
You mean how to read the code?? Like this:
t.test # print the function
function (x, ...)
UseMethod("t.test")
<environment: namespace:stats>
# that told me 't.test' has S3 methods methods(t.test)
[1] t.test.default* t.test.formula*
Non-visible functions are asterisked
# that told me what they were # and that I need ':::' to see them page(stats:::t.test.default,"print") page(stats:::t.test.formula,"print") # looks like you want to study t.test.default
see ?methods ?":::" HTH
[...]
Charles C. Berry (858) 534-2098
Dept of Family/Preventive Medicine
E mailto:cberry at tajo.ucsd.edu UC San Diego
http://biostat.ucsd.edu/~cberry/ La Jolla, San Diego 92093-0717
I think what i want is code in C or Java. But thanks though.
On Mon, 11 Dec 2006, Weiwei Shi wrote:
Hi, there: for some reason, I need to look at t.test at coding level. Can anyone here suggest a place to start with?
You mean how to read the code?? Like this:
t.test # print the function
function (x, ...)
UseMethod("t.test")
<environment: namespace:stats>
# that told me 't.test' has S3 methods methods(t.test)
[1] t.test.default* t.test.formula*
Non-visible functions are asterisked
# that told me what they were # and that I need ':::' to see them page(stats:::t.test.default,"print") page(stats:::t.test.formula,"print") # looks like you want to study t.test.default
see
?methods
?":::"
HTH
[...]
Charles C. Berry (858) 534-2098
Dept of Family/Preventive Medicine
E mailto:cberry at tajo.ucsd.edu UC San Diego
http://biostat.ucsd.edu/~cberry/ La Jolla, San Diego 92093-0717
Weiwei Shi, Ph.D Research Scientist GeneGO, Inc. "Did you always know?" "No, I did not. But I believed..." ---Matrix III