From: Rolf Turner <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [R] Beginner's question about t.test() Date: Sun, 15 Feb 2004 11:23:26 -0400 (AST)
(a) You don't really need/want to look at t.test.default; your own code --- to do t tests based on summary statistics rather than data --- will have little or nothing to do with the code in t.test.default. Just write code to do the t test ``as if you were doing it by hand'' which is very simple and straightforward.
(b) The reason that you can't ``see'' the t.test.default code is the namespace business on which I recently wrote a perhaps ill-advised rant to this list.
It was gently pointed out to me that the namespace idea certainly does have its uses and advantages. It was also pointed out that you CAN get at functions which are ``hidden away'' by the namespace mechanism. Three ways (of which I was kindly informed by Andy Liaw and Duncan Murdoch) are:
> ctest:::t.test.default > getAnywhere("t.test.default") > getS3method("t.test","default")
Hope this helps.
cheers,
Rolf Turner [EMAIL PROTECTED]
You are right, I really don't want to correct the function code because it seems too complex for me to understand it right now. :)
Thanks for advice how to see the code.
Pramote
______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html