predict.sbh: Predict Function

Description Usage Arguments Details Value Acknowledgments Note Author(s) References

Description

S3-method predict function to predict the box membership and box vertices on an independent set, using a cross-validated sbh fitted object.

Usage

1
2
3
4
5
  ## S3 method for class 'sbh'
predict(object, 
        newdata, 
        steps = 1:object$cvfit$cv.nsteps, 
        na.action = na.omit, ...)

Arguments

object

Object of class sbh as generated by the main function sbh.

newdata

A numeric matrix containing the new input data of same format as input data object$X. If not a matrix, newdata will be coerced to a matrix.

steps

Integer vector. Vector of peeling steps at which to predict the box memberships and box vertices. Defaults to all the peeling steps of sbh object object.

na.action

A function to specify the action to be taken if NAs are found. The default action is na.omit, which leads to rejection of incomplete cases.

...

Further generic arguments passed to the predict function.

Details

Only the used covariates of the final sbh object will be retained for the covariates of newdata. So, the used covariates of sbh object must be equal or a subset of the the covariates of newdata.

Value

List containing the following 5 fields:

boxind

Logical matrix of predicted box membership indicator (columns) by peeling steps (rows). TRUE = inbox, FALSE = outbox.

vertices

List of size the number of chosen peeling steps, where each entry is a numeric matrix of predicted box vertices: lower and upper bounds (rows) by covariate (columns).

rules

List of size the number of chosen peeling steps, where each entry is a numeric matrix of decision rules on the covariates (columns) for all peeling steps (rows).

sign

numeric vector in {-1,+1} of directions of peeling for all used (selected) covariates.

used

numeric vector of covariates used (selected) for peeling, indexed in reference to original index.

Acknowledgments

This work made use of the High Performance Computing Resource in the Core Facility for Advanced Research Computing at Case Western Reserve University. This project was partially funded by the National Institutes of Health NIH - National Cancer Institute (R01-CA160593) to J-E. Dazard and J.S. Rao.

Note

End-user predict function.

Author(s)

Maintainer: "Jean-Eudes Dazard, Ph.D." jean-eudes.dazard@case.edu

References


PRIMsrc documentation built on May 2, 2019, 11:45 a.m.