Re: [R] Problem with col

2015-04-20 Thread Sonia Amin
at1$bb * 5 #works > ddat2$bb * 5 # error! > > > They look the same on the computer screen but they are quite different. > > John Kane > Kingston ON Canada > > > > > > > Thanks > > > > > > > > 2015-04-20 18:40 GMT+02:00 Sarah Goslee :

Re: [R] Problem with col

2015-04-20 Thread Sonia Amin
Thank you very much Sarah 2015-04-20 19:05 GMT+02:00 Sarah Goslee : > On Mon, Apr 20, 2015 at 12:56 PM, Sonia Amin wrote: > > Sorry Sarah for my basic question: what does "a column was read as > factor" > > mean? > > A factor is one of the basic typ

Re: [R] Problem with col

2015-04-20 Thread Sonia Amin
. > > Sarah > > On Mon, Apr 20, 2015 at 12:33 PM, Sonia Amin wrote: > > Dear All, > > > > I have written the following lines: > > > > > data<-read.table("C:\\Users\\intel\\Documents\\SIIID\\datamultiplereg.txt",header > > = FALSE,

[R] Problem with col

2015-04-20 Thread Sonia Amin
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(resul

Re: [R] about lm

2012-11-16 Thread Sonia Amin
ok I am sorry 2012/11/16 Hasan Diwan > Ms Amin, > > On 16 November 2012 14:06, Sonia Amin wrote: > >> I have attached the file ven.csv > > > Attachments don't come through on the mailing list. Please enclose the > first few lines in your message. --

Re: [R] about lm

2012-11-16 Thread Sonia Amin
ui Barradas > Hello, > > The error message is not at all clear. Have you copied and pasted it? > Can you post a data example? Using ?dput, for instance. > > dput(head(mat, 30)) # paste the output of this in a post > > Rui Barradas > > Em 16-11-2012 21:44, Soni

[R] about lm

2012-11-16 Thread Sonia Amin
Rui and Berend thank you for your help before posting this mail, I change the name of my data and it becomes "mat" and I tried with this line: lm (ve~ su, data = mat) I got this message: Lm.fit error in (x, y, offset = offset = singular.ok singular.ok ...) [[alternative HTML version del

[R] about lm

2012-11-16 Thread Sonia Amin
Dear friends, I have a csv file entitled ven.csv located in C:\\, this file contains only two columns:"ve" and "su" I have written the following lines: data=read.csv("c:\\ven.csv",header=TRUE,sep=";"); lm(ve~ su) I have obtained the following message: Error in eval(expr, envir, enclos) : object

[R] about systemfit package

2012-11-13 Thread Sonia Amin
Dear friends, I have written the following lines in R console wich already exist in pdf file systemfit: data( "GrunfeldGreene" ) library( "plm" ) GGPanel <- plm.data( GrunfeldGreene, c( "firm", "year" ) ) greeneSur <- systemfit( invest ~ value + capital, method = "SUR", + data = GGPanel ) greenSur

[R] About systemfit package

2012-11-13 Thread Sonia Amin
Dear friends, I have written the following lines in R console wich already exist in pdf file systemfit: data( "GrunfeldGreene" ) library( "plm" ) GGPanel <- plm.data( GrunfeldGreene, c( "firm", "year" ) ) greeneSur <- systemfit( invest ~ value + capital, method = "SUR", + data = GGPanel ) greenSur