Re: [R] Problem while predicting in regression trees

2016-05-10 Thread Muhammad Bilal
ga2.akin...@live.uwe.ac.uk> From: Max Kuhn <mxk...@gmail.com> Sent: 09 May 2016 23:22:30 To: Muhammad Bilal Cc: Bert Gunter; r-help@r-project.org Subject: Re: [R] Problem while predicting in regression trees I've brought this up numerous times... you s

Re: [R] Problem while predicting in regression trees

2016-05-09 Thread Max Kuhn
live.uwe.ac.uk* <olugbenga2.akin...@live.uwe.ac.uk> > > > -- > *From:* Max Kuhn <mxk...@gmail.com> > *Sent:* 09 May 2016 17:22:22 > *To:* Muhammad Bilal > *Cc:* Bert Gunter; r-help@r-project.org > > *Subject:* Re: [R] Problem while

Re: [R] Problem while predicting in regression trees

2016-05-09 Thread Muhammad Bilal
Max Kuhn; r-help@r-project.org Subject: Re: [R] Problem while predicting in regression trees Why are you predicting from tr_m$finalModel instead of from tr_m? Bill Dunlap TIBCO Software wdunlap tibco.com<http://tibco.com> On Mon, May 9, 2016 at 11:46 AM, Muhammad Bilal <muhammad2

Re: [R] Problem while predicting in regression trees

2016-05-09 Thread William Dunlap via R-help
1QY > > muhammad2.bi...@live.uwe.ac.uk<mailto:olugbenga2.akin...@live.uwe.ac.uk> > > > > From: Max Kuhn <mxk...@gmail.com> > Sent: 09 May 2016 17:22:22 > To: Muhammad Bilal > Cc: Bert Gunter; r-help@r-project.org > Subject: Re: [R

Re: [R] Problem while predicting in regression trees

2016-05-09 Thread Muhammad Bilal
muhammad2.bi...@live.uwe.ac.uk<mailto:olugbenga2.akin...@live.uwe.ac.uk> From: Max Kuhn <mxk...@gmail.com> Sent: 09 May 2016 17:22:22 To: Muhammad Bilal Cc: Bert Gunter; r-help@r-project.org Subject: Re: [R] Problem while predicting in regression trees It is ext

Re: [R] Problem while predicting in regression trees

2016-05-09 Thread Muhammad Bilal
y 2016 17:22:22 To: Muhammad Bilal Cc: Bert Gunter; r-help@r-project.org Subject: Re: [R] Problem while predicting in regression trees It is extremely difficult to tell what the issue might be without a reproducible example. The only thing that I can suggest is to use the non-formula interface to

Re: [R] Problem while predicting in regression trees

2016-05-09 Thread Max Kuhn
ation Centre (BERIC), > University of the West of England (UWE), > Frenchay Campus, > Bristol, > BS16 1QY > > muhammad2.bi...@live.uwe.ac.uk > > > ____________ > From: Bert Gunter <bgunter.4...@gmail.com> > Sent: 09 May 2016 01:42:39 > To: Muhammad B

Re: [R] Problem while predicting in regression trees

2016-05-09 Thread Muhammad Bilal
m> Sent: 09 May 2016 01:42:39 To: Muhammad Bilal Cc: r-help@r-project.org Subject: Re: [R] Problem while predicting in regression trees It seems that the data that you used for prediction contained a level "Hospitals" for the sector factor that did not appear in the training data

Re: [R] Problem while predicting in regression trees

2016-05-08 Thread Bert Gunter
It seems that the data that you used for prediction contained a level "Hospitals" for the sector factor that did not appear in the training data (or maybe it's the other way round). Check this. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and

[R] Problem while predicting in regression trees

2016-05-08 Thread Muhammad Bilal
Hi All, I have the following script, that raises error at the last command. I am new to R and require some clarification on what is going wrong. #Creating the training and testing data sets splitFlag <- sample.split(pfi_v3, SplitRatio = 0.7) trainPFI <- subset(pfi_v3, splitFlag==TRUE) testPFI