Re: [R] Problems with "predict" function

2018-01-31 Thread Simmering, Jacob E
Your messages about masking come from attaching your data set to the R session. In general, that is bad practice as it leads to confusing code. It is typically better to use the “data” argument in things like lm() to accomplish this task. As near as I can tell, your second set of predictions is

Re: [R] Help with dates

2017-12-28 Thread Simmering, Jacob E
Your dates have an incomplete year information with 34. R assumes that 00-68 are 2000 to 2068 and 69 to 99 are 1969 to 1999. See ?strptime and the details for %y. You can either append “19” to the start of your year variable to make it completely express the year or check if the date is in the

Re: [R] seek non-black box alternative to randomForest

2017-05-30 Thread Simmering, Jacob E
Barry, This is mostly a mailing list about R - you have have more luck with statistical questions on www.stat.stackexchange.com. That said - the editor is wrong. The limitations of trees that random forests “solves” is overfitting. The mechanism by which a random forest classifier is built i

Re: [R] Could not load Package 'rgl'

2017-04-12 Thread Simmering, Jacob E
Christofer, This SO thread may be helpful: http://stackoverflow.com/questions/33634871/installing-rgl-package-in-r-mac-osx-el-captian-fixed On Apr 12, 2017, at 12:22 PM, Christofer Bogaso mailto:bogaso.christo...@gmail.com>> wrote: Hi again, I could not load the 'rgl' package with below Erro

Re: [R] Too strange that I cannot install several packages

2017-04-10 Thread Simmering, Jacob E
Bruce, `sample` doesn’t appear to be an R package. `resample` installed for me. `apply` and `sapply` aren’t packages either. `sample`, `apply` and `sapply` are all functions, however. > On Apr 10, 2017, at 12:08 PM, BR_email wrote: > > Hi Rers: > Is there anything I can check for as to wh