Regression coefficients, predicted values and summary in SGP problems {SFSI}R Documentation

SGP methods

Description

Useful methods for retrieving and summarizing important results from the 'SGP' function's output

Usage

## S3 method for class 'SGP'
coef(object, ...)

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

## S3 method for class 'SGP'
summary(object, ...)

Arguments

object

An object of the class 'SGP'

...

Other arguments to be passed to coef method:

  • nsup: (numeric) Average (across testing individuals) number of non-zero regression coefficients. Only the coefficients for the lambda associated to nsup are returned as a 'matrix' with testing individuals in rows

  • iy: (integer vector) Index testing elements (stored in object$tst) to be considered. Only coefficients corresponding to the testing individuals object$tst[iy] are returned

For predict and summary methods:

  • y: (numeric vector) An optional response vector

Value

Method predict returns a matrix with the predicted values for each individual in the testing set (in rows) for each value of lambda (in columns).

Method coef (list of matrices) returns the regression coefficients for each testing set individual (elements of the list). Each matrix contains the coefficients for each value of lambda (in rows) associated to each training set individual (in columns).

Method summary returns a list object containing:

Examples

  # See examples in
  # help(SGP, package="SFSI")

[Package SFSI version 1.4 Index]