Skip to content
Prev 3081 / 20628 Next

Extracting p-values from an lme object (any help would be appreciated)

Adam,

I'm sorry, I must jump in here.  See responses to specific points below.

Regards,   Rob Kushler
Adam D. I. Kramer wrote:
It's true that calling "pt" is a simple way to *compute* the
     p-values, but the question was how to *extract* them.  In general
     the ability to manipulate objects is a key advantage of R.
I think you mean "when t is negative" - but that's still not correct.
     You want "lower=TRUE" when the alternative hypothesis Ha says "<" and
     "lower=FALSE" when Ha says ">", regardless of the sign of t.
Actually you need "2*pt(-abs(t), df, lower=TRUE)" to ensure a
     correct two-sided p-value.