# predict_Rcpp_s2net

From s2net v1.0
0th

Percentile

##### Predict method for s2net C++ class.

This function provides an interface in R for the method predict in C++ class s2net.

##### Usage

predict_Rcpp_s2net(object, newX, type = "default")
##### Arguments
object

An object of class Rcpp_s2net.

newX

Data to make predictions. Could be a s2Data object (field xL is used) or a matrix (in the same space as the original data where the model was fitted).

type

Type of predictions. One of "default": let the method figure it out; "response": the linear predictor; "probs": fitted probabilities; class: fitted class.

##### Details

This method is included as a high-level wrapper of object\$predict().

##### Value

Returns a column matrix with the same number of rows/observations as newX.

Rcpp_s2net