Skip to content

How to capture t-score and p-values from t.test

1 message · Bernzweig, Bruce (Exchange)

#
Thanks Peter!

-----Original Message-----
From: pd at pubhealth.ku.dk [mailto:pd at pubhealth.ku.dk] On Behalf Of Peter Dalgaard
Sent: Friday, March 24, 2006 3:37 PM
To: Bernzweig, Bruce (Exchange)
Cc: r-devel at r-project.org
Subject: Re: [Rd] How to capture t-score and p-values from t.test

"Bernzweig, Bruce (Exchange)" <bbernzwe at bear.com> writes:
tt <- t.test(d[1], d[2], var.equal=TRUE)

tt$statistic
tt$p.value

unclass(tt)
names(tt)