Re: [R] linear regression: Is there a way to get the results of lm as variables

2009-10-21 Thread Jorge Ivan Velez
Hi CE.KA, Take a look at the following: # Data set.seed(123) x <- rnorm(100) y <- 2 + 1.5*x + rnorm(100) # Regression model reg <- lm(y ~ x) # The summary summary(reg) # Objects present in the summary() names(summary(reg)) # Extracting the coefficients summary(reg)$coeff HTH, Jorge On Wed,

Re: [R] linear regression: Is there a way to get the results of lm as variables

2009-10-21 Thread Achim Zeileis
On Wed, 21 Oct 2009, CE.KA wrote: Hi R users I used R to get the results of a linear regression reg<-lm(y~x) here are the results: # Call: # lm(formula = donnees$txi7098 ~ donnees$txs7098) # # Residuals: # Min1QMedian3Q Max # -0.037971 -0.013373 -0.004947

[R] linear regression: Is there a way to get the results of lm as variables

2009-10-21 Thread CE.KA
Hi R users I used R to get the results of a linear regression reg<-lm(y~x) here are the results: # Call: # lm(formula = donnees$txi7098 ~ donnees$txs7098) # # Residuals: # Min