Re: [R] Random Forest: OOB performance = test set performance?

2021-04-11 Thread thebudget72
Thanks Peter. Indeed by setting a seed the two results are similar. I am self-studying and wanted to make sure I understood the concept of OOB samples and how much "reliable" were performance metrics calculated on them. It seems I did got it. That's good :) On 4/11/21 6:34 AM, Peter Langfel

Re: [R] evil attributes

2021-04-11 Thread Bill Dunlap
Terry wrote I confess to being puzzled WHY the R core has decided on this definition [of vector] ... I believe that "R core" followed S's definition of "vector". From the beginning (at least when I first saw it in 1981) an S vector was the basic unit of an S object - it had a type and a

Re: [R] evil attributes

2021-04-11 Thread Duncan Murdoch
On 11/04/2021 2:46 p.m., Viechtbauer, Wolfgang (SP) wrote: The is.vector() thing has also bitten me in the behind on a few occasions. When I want to check if something is a vector, allow for it to possibly have some additional attributes (besides names) that would make is.vector() evaluate to

Re: [R] updating OpenMx failed

2021-04-11 Thread Rich Shepard
On Sun, 11 Apr 2021, Martin Møller Skarbiniks Pedersen wrote: You should contact the maintainers of the package. According to this page: https://cran.r-project.org/web/packages/OpenMx/index.html you can get help from http://openmx.ssri.psu.edu/forums Martin, You're correct. I should have look

Re: [R] updating OpenMx failed

2021-04-11 Thread Martin Møller Skarbiniks Pedersen
On Sun, 11 Apr 2021 at 18:10, Rich Shepard wrote: > > I'm running Slackware-14.2/x86_64 and R-4.0.2-x86_64-1_SBo. > > Updating OpenMx failed: > omxState.cpp:1230:82: required from here > omxState.cpp:1229:17: error: cannot call member function ‘void ConstraintVec::eval(FitContext*, double*, doub

Re: [R] evil attributes

2021-04-11 Thread David Winsemius
On 4/11/21 11:46 AM, Viechtbauer, Wolfgang (SP) wrote: The is.vector() thing has also bitten me in the behind on a few occasions. When I want to check if something is a vector, allow for it to possibly have some additional attributes (besides names) that would make is.vector() evaluate to FA

Re: [R] evil attributes

2021-04-11 Thread Viechtbauer, Wolfgang (SP)
The is.vector() thing has also bitten me in the behind on a few occasions. When I want to check if something is a vector, allow for it to possibly have some additional attributes (besides names) that would make is.vector() evaluate to FALSE, but evaluate to FALSE for lists (since is.vector(list(

[R] updating OpenMx failed

2021-04-11 Thread Rich Shepard
I'm running Slackware-14.2/x86_64 and R-4.0.2-x86_64-1_SBo. Updating OpenMx failed: omxState.cpp:1230:82: required from here omxState.cpp:1229:17: error: cannot call member function ‘void ConstraintVec::eval(FitContext*, double*, double*)’ without object eval(fc2, result.data(

Re: [R] evil attributes

2021-04-11 Thread Therneau, Terry M., Ph.D. via R-help
I wrote: "I confess to being puzzled WHY the R core has decided on this definition..." After just a little more thought let me answer my own question. a. The as.vector() function is designed to strip off everything extraneous and leave just the core.   (I have a mental image of Jack Webb saying

Re: [R] Identifying column type

2021-04-11 Thread Steven Yen
Thanks. Great idea! Sent from my iPhone Beware: My autocorrect is crazy > On Apr 10, 2021, at 1:37 PM, Rui Barradas wrote: > > Hello, > > Maybe something like > > > ok <- sapply(mydata, is.numeric) > mydata <- mydata[ok] > > > to keep the numeric columns only. > > > Hope this helps, >