Learn R Programming

selectiveInference (version 1.2.5)

predict.groupfs: Prediction and coefficient functions for groupfs.

Description

Make predictions or extract coefficients from a groupfs forward stepwise object.

Usage

# S3 method for groupfs
predict(object, newx)

Arguments

object

Object returned by a call to groupfs.

newx

Matrix of x values at which the predictions are desired. If NULL, the x values from groupfs fitting are used.

Value

A vector of predictions or a vector of coefficients.