Description Usage Arguments Value Examples
Prediction for cv_glmaag model
1 2 |
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 |
... |
... |
the predicted value
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.