Displaying 1 result from an estimated 1 matches for "feuil1".
Did you mean:
feuil2
2009 May 14
1
Data extraction problem after importation using RODBC
.... I hope that you help me.
My data base is in an Excel spreasheet. I import this data base using the following code:
library(RODBC)
db <- "C:/Users/Axel/Desktop/estimation/data.xls"
channel <- odbcConnectExcel(xls.file = db)
data <- sqlFetch(channel = channel, sqtable = "Feuil1")
data
odbcClose(channel)
Then I perform an lm regression using the following code:
reg1 <-lm(data$prod~data$pri+data$cli)
summary(reg1)
Then I try to perform a gls regression because I have a correlation problem. For this I use the following code:
reg1gls <- gls(data$prod ~ data$...