Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.LNX.4.64.0612111654140.14753@tajo.ucsd.edu>
Date: 2006-12-12T01:06:01Z
From: Charles C. Berry
Subject: implementation of t.test
In-Reply-To: <cdf817830612111605k58b7b2f3neb5e7fb4c3c50c0c@mail.gmail.com>

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