predict.inferCSN: Predict Response

View source: R/utils.R

predict.inferCSNR Documentation

Predict Response

Description

Predicts the response for a given sample

Usage

## S3 method for class 'inferCSN'
predict(object, newx, lambda = NULL, gamma = NULL, ...)

## S3 method for class 'inferCSNCV'
predict(object, newx, lambda = NULL, gamma = NULL, ...)

Arguments

object

The output of inferCSN.fit

newx

A matrix on which predictions are made. The matrix should have p columns

lambda

The value of lambda to use for prediction. A summary of the lambdas in the regularization path can be obtained using print(fit)

gamma

The value of gamma to use for prediction. A summary of the gammas in the regularization path can be obtained using print(fit)

...

Other parameters

Details

If both lambda and gamma are not supplied, then a matrix of predictions for all the solutions in the regularization path is returned. If lambda is supplied but gamma is not, the smallest value of gamma is used. In case of logistic regression, probability values are returned

Value

Return the predict value

Return the predict value


inferCSN documentation built on Nov. 2, 2023, 6:27 p.m.