[R] Extracting t values from object of class `"pairwise.htest"'
Peter Dalgaard BSA
p.dalgaard at biostat.ku.dk
Thu Oct 10 22:31:35 CEST 2002
"Marc Schwartz" <mschwartz at medanalytics.com> writes:
> > -----Original Message-----
> > Achim Zeileis writes:
> > > Sven Garbade wrote:
> > > >
> > > > Hi,
> > > >
> > > > can I extract the p-values after a pairwise comparision with
> > > > pairwise.t.test()? The object of class "pairwise.htest".
> > >
> > > This is a list with one component being "p.value". You can extract
> it as
> > > usual with
> > > pairwise.t.test()$p.value
> >
> > Sorry, I don't mean the p-values, but the t-values.
>
> That would be:
>
> pairwise.t.test(...)$statistic
>
> Look at ?t.test and scroll to the "Value" section which defines the list
> components returned.
But pairwise.t.test doesn't return the individual t statistics. It
ends with
ans <- list(method = METHOD, data.name = DNAME, p.value = PVAL,
p.adjust.method = p.adjust.method)
class(ans) <- "pairwise.htest"
ans
so you'd have to modify the function to get at the actual t statistics.
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list