predict.cv_glmaag: Predict

Description Usage Arguments Value Examples

Description

Prediction for cv_glmaag model

Usage

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

Arguments

object

the estimated cv_glmaag model

x

the new dataset for prediction, if omitted returns the training prediction

type1se

whether or not using the coefficients by one standard error ruld, default to be TRUE

type

can be either "link", or "response", link returns linear predicted score, For Gaussian model this option can be ingnored, for logistic model "response" returns predicted probability, for Cox model "reponse" returns relative risk

...

...

Value

the predicted value

Examples

1
2
3
4
5
6
7
data(sampledata)
data(L0)
y <- sampledata$Y_Gau
x <- sampledata[, -(1:3)]
cvwhich <- sample(rep(0:4, length.out = length(y)))
mod <- cv_glmaag(y, x, L0, cvwhich = cvwhich)
pp <- predict(mod)

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