[R] somebody's stolen my probabilities

Emmanuel Paradis paradis at isem.univ-montp2.fr
Mon Sep 4 10:10:42 CEST 2000


At 14:30 04/09/00 +1100, you wrote:
>gday gurus,
>
>could someone please help me with this one?  Can't find it in the doco.
>
>summary of my lm object gives "Pr(>|t|)" but coef doesn't.  How do I get
>hold of these probabilities within an object?  There doesn't seem to be an
>appropriate attribute within the object - I was hoping for something like
>"my.lm$probabilies".
>
>I was hoping to grab the best t scores at run-time.
>
>thanks,
>John Strumila

Hi,

Is it what you need?

> mod <- lm(y ~ x)
> coef(mod)                  # does not give all the information on coeffs
(Intercept)      x 
        2.5         1.5 
> coef(summary(mod))
            Estimate Std. Error  t value    Pr(>|t|)
(Intercept)      2.5  0.7371569 3.391408 0.003471731
     x           1.5  0.8296427 1.808007 0.088330784
> coef(summary(mod))[2,4]
[1] 0.08833078

Best,

Emmanuel Paradis
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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