Skip to contents

CART MAP-X models.

Usage

Xmodel.tree.CART(data = NULL, CP = 0.01, costs = NA)

Arguments

data

Data frame with pairwise differential values. Must contain columns "protein1" and "protein2", any number of columns with predictors for modelling and a labels column with values 1 (for protein pairs that form a complex) and 0 (for protein pairs that do not form a complex).

costs

Integer: A number specifying how much is the cost of falsely predicting non-interacting protein pairs as interacting higher than vice versa.

eval.metric

Character string: How should the model be evaluated in cross-validation? Defalt is "prc" for area under the precision-recall curve. Other options are "roc" for area under the receiver-operator curve and "kappa" for Cohen's kappa.

CPs

Numeric vector: Complexity parameters to be cross-validated. Default is 0.01.

Value

A list with two elements. $model contains the model and $predict.type contains a string that is used in predict() to predict values using the model.