[R] Evaluating statistical models and describing coefficients for non-parametric models

2016-05-17 Thread Muhammad Bilal
e the co-efficient for other models such as SVM and neural network? Thanks in advance for the help and support. Many Thanks and Kind Regards -- Muhammad Bilal Research Fellow and Doctoral Researcher, Bristol Enterprise, Research, and Innovation Centre (BERIC), University of the West of En

Re: [R] Creating data frame of predicted and actual values in R for plotting

2016-05-11 Thread Muhammad Bilal
"yellow", size=1) + geom_line(aes(y=rf_pred), colour="black", size=1) So I am done. Many Thanks and Kind Regards -- Muhammad Bilal Research Fellow and Doctoral Researcher, Bristol Enterprise, Research, and Innovation Centre (BERIC), University of the West of England (UWE),

Re: [R] Creating data frame of predicted and actual values in R for plotting

2016-05-10 Thread Muhammad Bilal
Pls don't mind the typo in predict() functions for some of the models. Sent from my iPhone > On 11 May 2016, at 12:47 am, Muhammad Bilal > wrote: > > Hi All, > > > I have the following dataset: > > >> str(pfi_v3) > 'data.frame': 714 obs

[R] Creating data frame of predicted and actual values in R for plotting

2016-05-10 Thread Muhammad Bilal
y $cf_predicted_delay I want to use this dataframe to draw the line chart to compare predictions. How to achieve this? Any help will be highly appreciated. Many Thanks and Kind Regards -- Muhammad Bilal Research Fellow and Doctoral Researcher, Bristol Enterprise, Research, and

Re: [R] Problem while predicting in regression trees

2016-05-10 Thread Muhammad Bilal
Many thanks Max for these valuable suggestions. -- Muhammad Bilal Research Fellow and Doctoral Researcher, Bristol Enterprise, Research, and Innovation Centre (BERIC), University of the West of England (UWE), Frenchay Campus, Bristol, BS16 1QY muhammad2.bi...@live.uwe.ac.uk<mailto:olugben

Re: [R] Problem while predicting in regression trees

2016-05-09 Thread Muhammad Bilal
Hi Bill, Many thanks for highlighting the issue. It worked as I predicted using the tr_m. I'm extremely grateful for the insight. Thanks for all who gave me prior guidance as well. -- Muhammad Bilal Research Fellow and Doctoral Researcher, Bristol Enterprise, Research, and Innovation C

Re: [R] Problem while predicting in regression trees

2016-05-09 Thread Muhammad Bilal
opbox.com/s/kkiwm32jxfk7jac/pfi_data.csv?dl=0> www.dropbox.com Shared with Dropbox -- Muhammad Bilal Research Fellow and Doctoral Researcher, Bristol Enterprise, Research, and Innovation Centre (BERIC), University of the West of England (UWE), Frenchay Campus, Bristol, BS16 1QY

Re: [R] Problem while predicting in regression trees

2016-05-09 Thread Muhammad Bilal
is command raises the error] best_tree_pred <- predict(best_tree, newdata = testPFI) #Calculating the SSE best_tree_pred.sse <- sum((best_tree_pred - testPFI$project_delay)^2) # tree_pred.sse ... Many Thanks and Kind Regards -- Muhammad Bilal Research Fellow and Doctoral Researcher

Re: [R] Problem while predicting in regression trees

2016-05-09 Thread Muhammad Bilal
ount(*) 1 Defense5 2Hospitals 47 3 Housing 11 4 Others 44 5 Public Buildings 18 6 Schools 69 7 Social Care9 8 Transportation8 9Waste 12 Any thing else to try? -- Muhammad

[R] Problem while predicting in regression trees

2016-05-08 Thread Muhammad Bilal
7;sectorHospitals' not found Can someone guide me what to do to resolve this issue. Any help will be highly appreciated. Many Thanks and Kind Regards -- Muhammad Bilal Research Fellow and Doctoral Researcher, Bristol Enterprise, Research, and Innovation Centre (BERIC), Univ

Re: [R] trainControl and train functions are not found in caret package

2016-05-08 Thread Muhammad Bilal
Thanks you very much. The issue resolved by just upgrading the R and R studio to their latest versions. All the packages are now successfully installed. Henceforth, the code runs absolutely okay. -- Muhammad Bilal Research Fellow and Doctoral Researcher, Bristol Enterprise, Research, and

Re: [R] trainControl and train functions are not found in caret package

2016-05-08 Thread Muhammad Bilal
[16] magrittr_1.5 reshape2_1.4.1 gtable_0.2.0 colorspace_1.2-6 tools_3.2.0 [21] nlme_3.1-120 class_7.3-12 Rcpp_0.11.6 I even tried loading the caret package using require() function but no success. Many Thanks and Kind Regards -- Muhammad Bilal Research Fellow and Doctora

[R] trainControl and train functions are not found in caret package

2016-05-07 Thread Muhammad Bilal
s and Kind Regards -- Muhammad Bilal Research Fellow and Doctoral Researcher, Bristol Enterprise, Research, and Innovation Centre (BERIC), University of the West of England (UWE), Frenchay Campus, Bristol, BS16 1QY muhammad2.bi...@live.uwe.ac.uk<mailto:olugbenga2.akin...@live.uwe.ac.uk>

[R] How to access the latitude & longitude for UK post codes in R

2016-04-29 Thread Muhammad Bilal
that could be used? Any help will be really appreciated. Many Thanks and Kind Regards -- Muhammad Bilal Research Fellow and Doctoral Researcher, Bristol Enterprise, Research, and Innovation Centre (BERIC), University of the West of England (UWE), Frenchay Campus, Bristol, BS16 1QY muhammad2.bi

Re: [R] [FORGED] Generating random data with non-linear correlation between two variables

2016-04-09 Thread Muhammad Bilal
Hi Peter, Many thanks for the response. This is exactly what is wanted. I can now use this example to create data for my own purpose. Thanks for everybody who contributed. Warmest Regards, -- Muhammad Bilal Research Assistant and Doctoral Researcher, Bristol Enterprise, Research, and

Re: [R] [FORGED] Generating random data with non-linear correlation between two variables

2016-04-09 Thread Muhammad Bilal
By non linear correlation I mean that the trend or relationship between two variables is not a straight line. It is slightly curved like the one shared in the first replies. -- Muhammad Bilal Research Assistant and Doctoral Researcher, Bristol Enterprise, Research, and Innovation Centre

Re: [R] [FORGED] Generating random data with non-linear correlation between two variables

2016-04-09 Thread Muhammad Bilal
ons to spread the data points along the y-axis, so that they wouldn't overlap. I hope this may clear the use case further. Many Thanks and Kind Regards -- Muhammad Bilal Research Assistant and Doctoral Researcher, Bristol Enterprise, Research, and Innovation Centre (BERIC), Universit

Re: [R] [FORGED] Generating random data with non-linear correlation between two variables

2016-04-09 Thread Muhammad Bilal
No its not. I am doing all these experiments for my own learning purpose. I am Oracle SQL & PLSQL programmer and I can do these things with Oracle analytical functions. However at present I am keen to learn R, with no other interest right now. Thanks -- Muhammad Bilal Research Assistant

Re: [R] [FORGED] Generating random data with non-linear correlation between two variables

2016-04-09 Thread Muhammad Bilal
hanks and Kind Regards -- Muhammad Bilal Research Assistant and PhD Student, Bristol Enterprise, Research and Innovation Centre (BERIC), University of the West of England (UWE), Frenchay Campus, Bristol, BS16 1QY muhammad2.bi...@live.uwe.ac.uk From:

[R] Generating random data with non-linear correlation between two variables

2016-04-08 Thread Muhammad Bilal
ll be highly appreciated. Many Thanks and Kind Regards -- Muhammad Bilal Research Assistant and Doctoral Researcher, Bristol Enterprise, Research and Innovation Centre (BERIC), University of the West of England (UWE), Frenchay Campus, Bristol, BS16 1QY muhammad2.bi...@live.uwe.ac.uk<mailto:ol

[R] How to convert XML file to R Data Frame?

2016-04-02 Thread Muhammad Bilal
Hi All, I'm new to R and wants to read XML file as R data frame. Is there any package that could be used for this purpose. I will really appreciate your response. Many Thanks and Kind Regards -- Muhammad Bilal Research Assistant and PhD Student, Bristol Enterprise, Researc