Message-ID: <CALxf2c3jvS8UAfHO3d27rYaeU1uuxHzNs_Dtgxu3qen92ENS9A@mail.gmail.com>
Date: 2015-04-20T16:33:38Z
From: Sonia Amin
Subject: Problem with col
Dear All,
I have written the following lines:
data<-read.table("C:\\Users\\intel\\Documents\\SIIID\\datamultiplereg.txt",header
= FALSE, sep = "")
colnames(data)<-c("Consommation","Cylindre","Puissance","Poids")
result.model1<-lm(Consommation~Cylindre+Puissance+Poids, data=data)
summary(result.model1)
I obtained the following message:
Call:
lm(formula = Consommation ~ Cylindre + Puissance + Poids, data = data)
Residuals:
Error in quantile.default(resid) : factors are not allowed
In addition: warning message:
In Ops.factor(r, 2) :
?^? This is not relevant for factors
Where is the problem?
Thank you in advance
[[alternative HTML version deleted]]