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,
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
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
3 matches
Mail list logo