predict.ss_glmaag: Prediction via stability selection

Description Usage Arguments Value Examples

Description

Predict using the model tuned by stability selection

Usage

1
2
## S3 method for class 'ss_glmaag'
predict(object, x, type = "link", ...)

Arguments

object

the ss_glmaag object

x

the new dataset to be predicted, do training prediction if x is missing

type

type of prediction (can be "link", or "reponse" ), ignored for Gaussian model. "link" is the linear predicted score, "response" is the predicted probability for logistic model and relative risk for Cox model

...

...

Value

the predicted values

Examples

1
2
3
4
5
6
data(sampledata)
data(L0)
y <- sampledata$Y_Gau
x <- sampledata[, 4:6]
mod <- ss_glmaag(y, x, L0[seq_len(3), seq_len(3)], nsam = 3)
pp <- predict(mod)

glmaag documentation built on May 10, 2019, 9:04 a.m.