Learn R Programming

glmaag (version 0.0.6)

predict.ss_glmaag: Prediction via stability selection

Description

Predict using the model tuned by stability selection

Usage

# S3 method for 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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab