[R] simple test on slope of lm()

Fred JEAN frederic.jean at univ-brest.fr
Fri Nov 22 22:08:43 CET 2002


Hello

I want to compare the slope (let's say 'b') of a linear model obtained 
with lm() to a theoretical value (let's say 'th').

To do so, I think I should compute a 't value' using 
something like :

(b - 'th')/standard.deviation(b)

and then look at the p-value of this computed t.

I don't understand how to do this in a simple way, just using lm() 
outputs for example. 

I'm sorry of such a naive/newbie question, and thank you so much for 
taking time to answer.

Fred
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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