Re: [R] Formula in a model

2013-09-12 Thread Bert Gunter
ly, it makes sense to have > the expression: mutable[,outputColumns] ~ . > > Regards, > Paulito > > > > > - Original Message - > From: Gerrit Eichner > To: Paulito Palmes > Cc: "r-help@r-project.org" > Sent: Thursday, 12 September 201

Re: [R] Formula in a model

2013-09-12 Thread Paulito Palmes
- Original Message - From: Gerrit Eichner To: Paulito Palmes Cc: "r-help@r-project.org" Sent: Thursday, 12 September 2013, 8:53 Subject: Re: [R] Formula in a model Hello, Paulito, my comments are inline below: > Thanks for the explanation. Let me give a specific example. Assum

Re: [R] Formula in a model

2013-09-12 Thread Gerrit Eichner
Hello, Paulito, my comments are inline below: Thanks for the explanation. Let me give a specific example. Assume Temp (column 4) is the output and the rest of the columns are input is the training features. Note that I only use the air quality data for illustration purpose. T input->output ma

Re: [R] Formula in a model

2013-09-11 Thread Paulito Palmes
modelRP2,newdata=mytable[,-6]) modelRP2=rpart(mytable[,-6],mytable[,6],method='anova')  have errors. _________ From: Gerrit Eichner To: Paulito Palmes Cc: "r-help@r-project.org" Sent: Wednesday, 11 September 2013, 10:48 Subject: Re: [R] Formula in a model

Re: [R] Formula in a model

2013-09-11 Thread Gerrit Eichner
Hello, Paulito, first, I think you haven't received an answer yet because you did not "provide commented, minimal, self-contained, reproducible code" as the posting guide does request it from you. Second, see inline below. On Wed, 11 Sep 2013, Paulito Palmes wrote: Hi, I have a data.frame

Re: [R] Formula in a model

2013-09-11 Thread Paulito Palmes
Hi, I have a data.frame with dimension 336x336 called *training*, and another one called *observation* which is 336x1. I combined them as one table using table=data.frame(training, observation). table now has 336x337 dimension with the last column as the observation to learn using the training