Skip to content

Comments

Add better handling of input NA#133

Open
therneau wants to merge 1 commit intogbm-developers:masterfrom
therneau:nafix
Open

Add better handling of input NA#133
therneau wants to merge 1 commit intogbm-developers:masterfrom
therneau:nafix

Conversation

@therneau
Copy link

@therneau therneau commented Dec 9, 2016

Add the nagbm.r function, which is essentially a clone of na.rpart, as the default na.omit method. It removes any obs that is missing y or is missing every predictor, i.e., the non-informative ones.

Modify the obs.id argument so that it first looks in the data= (this is where the subject identifier normally will be) and can accept any type of identifier. It is then turned into an integer before further processing.

@pdmetcalfe
Copy link
Member

You're not going to like this, but could you add in some tests for this code?

@therneau
Copy link
Author

therneau commented Dec 9, 2016 via email

@pdmetcalfe
Copy link
Member

Looks like it's informative, so shouldn't be dropped.

@therneau
Copy link
Author

therneau commented Dec 13, 2016 via email

@pdmetcalfe
Copy link
Member

You can push extra commits up to the same branch and it should update this pull request?

But do whatever's easiest for you...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants