[R] regression slope

Avril Coghlan avril.coghlan at ucd.ie
Tue Jul 20 18:02:47 CEST 2004


  I'm a newcomer to R so please
forgive me if this is a silly question.

It's that I have a linear regression:
fm <- lm (x ~ y)
and I want to test whether the
slope of the regression is significantly
less than 1. How can I do this in R?

I'm also interested in comparing the
slopes of two regressions:
fm1 <- lm (x ~ y)
fm2 <- lm (a ~ b)
and asking if the slope of fm1 is
less than the slope of fm2. Is this
easy to do in R?

I will be very grateful for any help.

Avril Coghlan
(University College Dublin, Ireland)

More information about the R-help mailing list