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
For
|
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:
-
lambda
: (vector) sequence of values of lambda used in the coefficients' estimation. -
nsup
: (vector) Number of non-zero coefficients (across testing individuals) at each solution associated to each value of lambda. -
accuracy
: (vector) correlation between observed and predicted values associated to each value of lambda. -
MSE
: (vector) mean squared error associated to each value of lambda. -
optCOR
: (vector) summary of the optimal SGP with maximum accuracy. -
optMSE
: (vector) summary of the optimal SGP with minimum MSE.
Examples
# See examples in
# help(SGP, package="SFSI")