Skip to contents

Predict method for nested_fit objects

Usage

# S3 method for class 'nested_fit'
predict(object, newx, ...)

Arguments

object

An S3 object with class nested_fit. The two-stage nested model.

newx

A numeric matrix with the same number of columns and column names as the matrix used to fit the model. Rows correspond to samples, columns to features.

...

Other arguments for the normal predict function if the fit is not a nested_fit object.

Value

A numeric vector with the prediction for every sample.