8. SGP accuracy vs penalization plot {SFSI} | R Documentation |
Accuracy vs penalization plot
Description
Accuracy as a function of the penalization plot for an object of the class 'SGP'
Usage
## S3 method for class 'SGP'
plot(..., x.stat = c("nsup","lambda"),
y.stat = c("accuracy","MSE"),
label = x.stat, nbreaks.x = 6)
Arguments
... |
Other arguments to be passed:
|
x.stat |
(character) Either 'nsup' (number of non-zero regression coefficients entering in the prediction of a given testing individual) or 'lambda' (penalization parameter in log scale) to plot in the x-axis |
y.stat |
(character) Either 'accuracy' (correlation between observed and predicted values) or 'MSE' (mean squared error) to plot in the y-axis |
label |
(character) Similar to |
nbreaks.x |
(integer) Number of breaks in the x-axis |
Value
Creates a plot of either accuracy or MSE versus either the support set size (average number of predictors with non-zero regression coefficient) or versus lambda.
Examples
# See examples in
# help(SGP, package="SFSI")