print.sgs {sgs} | R Documentation |
print a "sgs"
object
Description
Performs prediction from an fit_sgs()
model fit.
Usage
## S3 method for class 'sgs'
print(x, ...)
Arguments
x |
Object an object of class |
... |
further arguments passed to base function. |
Value
A summary of the model fit.
See Also
Other SGS-methods:
plot.sgs_cv()
,
predict.sgs()
Examples
# specify a grouping structure
groups = c(rep(1:20, each=3),
rep(21:40, each=4),
rep(41:60, each=5),
rep(61:80, each=6),
rep(81:100, each=7))
# generate data
data = generate_toy_data(p=500, n=400, groups = groups, seed_id=3)
# run SGS
model = fit_sgs(X = data$X, y = data$y, groups = groups, type="linear", lambda = 1, alpha=0.95,
vFDR=0.1, gFDR=0.1, standardise = "l2", intercept = TRUE, verbose=FALSE)
# print model
print(model)
[Package sgs version 0.1.1 Index]